diff options
author | Colin Hogben <curl@pythontech.co.uk> | 2012-02-23 09:53:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-02-23 22:33:06 +0100 |
commit | 21130dab4f8266a6ec8aa48ed7aec37137493977 (patch) | |
tree | 611c69e298ae26b6b0e7b126b52ab33cfdb631b7 /tests/getpart.pm | |
parent | c3cae332c5fa5d4d50c45e9aeeb7efdc267dafd2 (diff) | |
download | curl-21130dab4f8266a6ec8aa48ed7aec37137493977.tar.gz |
Add helper script convsrctest.pl to manipulate --libcurl tests.
The intention is to take the output of curl's --libcurl option,
as exercised in test 14xx, and generate a corresponding test15xx
in which the generated code is compiled and run. This will verify
that the generated code behaves equivalently to the original
invocation of the curl command.
The script is not yet integrated into the configure / makefile
machinery.
Diffstat (limited to 'tests/getpart.pm')
-rw-r--r-- | tests/getpart.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm index 83e56ca92..1aeedd6dd 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -124,6 +124,11 @@ sub getpart { return @this; #empty! } +# Return entire document as list of lines +sub getall { + return @xml; +} + sub loadtest { my ($file)=@_; |