From 21130dab4f8266a6ec8aa48ed7aec37137493977 Mon Sep 17 00:00:00 2001 From: Colin Hogben Date: Thu, 23 Feb 2012 09:53:26 +0000 Subject: 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. --- tests/getpart.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/getpart.pm') 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)=@_; -- cgit v1.2.3