From: Daniel Stenberg Date: Sat, 19 Aug 2023 21:33:25 +0000 (+0200) Subject: test687/688: two more basic --xattr tests X-Git-Tag: curl-8_3_0~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73b6d4e814937bab2ede56bb0fe223ec19264caf;p=thirdparty%2Fcurl.git test687/688: two more basic --xattr tests Closes #11697 --- diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 5d909a8934..447c385932 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -92,12 +92,12 @@ test599 test600 test601 test602 test603 test604 test605 test606 test607 \ test608 test609 test610 test611 test612 test613 test614 test615 test616 \ test617 test618 test619 test620 test621 test622 test623 test624 test625 \ test626 test627 test628 test629 test630 test631 test632 test633 test634 \ -test635 test636 test637 test638 test639 test640 test641 test642 \ -test643 test644 test645 test646 test647 test648 test649 test650 test651 \ -test652 test653 test654 test655 test656 test658 test659 test660 test661 \ -test662 test663 test664 test665 test666 test667 test668 test669 \ -test670 test671 test672 test673 test674 test675 test676 test677 test678 \ -test679 test680 test681 test682 test683 test684 test685 test686 \ +test635 test636 test637 test638 test639 test640 test641 test642 test643 \ +test644 test645 test646 test647 test648 test649 test650 test651 test652 \ +test653 test654 test655 test656 test658 test659 test660 test661 test662 \ +test663 test664 test665 test666 test667 test668 test669 test670 test671 \ +test672 test673 test674 test675 test676 test677 test678 test679 test680 \ +test681 test682 test683 test684 test685 test686 test687 test688 \ \ test700 test701 test702 test703 test704 test705 test706 test707 test708 \ test709 test710 test711 test712 test713 test714 test715 test716 test717 \ diff --git a/tests/data/test687 b/tests/data/test687 new file mode 100644 index 0000000000..500a1dfb24 --- /dev/null +++ b/tests/data/test687 @@ -0,0 +1,62 @@ + + + +HTTP +xattr + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: fake/data + +-foo- + + + +# +# Client-side + + +http + + +debug +xattr + +# simulate the xattr operations + +CURL_FAKE_XATTR=1 + + +basic --xattr with -o + + +http://%HOSTIP:%HTTPPORT/%TESTNUMBER --xattr -o %LOGDIR/out%TESTNUMBER + + + +# +# Verify data after the test has been "shot" + + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* + + + +user.mime_type => fake/data +user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER + + + diff --git a/tests/data/test688 b/tests/data/test688 new file mode 100644 index 0000000000..c545c47044 --- /dev/null +++ b/tests/data/test688 @@ -0,0 +1,62 @@ + + + +HTTP +xattr + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: fake/data + +-foo- + + + +# +# Client-side + + +http + + +debug +xattr + +# simulate the xattr operations + +CURL_FAKE_XATTR=1 + + +basic --xattr with -O + + +--xattr -O --output-dir %LOGDIR http://%HOSTIP:%HTTPPORT/%TESTNUMBER + + + +# +# Verify data after the test has been "shot" + + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* + + + +user.mime_type => fake/data +user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER + + +