diff options
author | Yang Tse <yangsita@gmail.com> | 2012-11-30 19:13:50 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-11-30 19:13:50 +0100 |
commit | 2ecdd486837d47eafb9861ea48519ed3b57d667b (patch) | |
tree | 523e2c0298c3d7fdae0b20bd4d01df3dc5d178d7 /tests/testcurl.pl | |
parent | 6bd6b3a8a17e2f2004e276c7568feaa01acebfe7 (diff) | |
download | curl-2ecdd486837d47eafb9861ea48519ed3b57d667b.tar.gz |
testcurl.pl: build example programs for several autobuilds
Affected autobuilds: IRIX, AIX, Tru64 and AIX.
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-x | tests/testcurl.pl | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl index a24f2f626..5de997d4c 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -73,7 +73,7 @@ use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball $timestamp $notes); # version of this script -$version='2012-07-02'; +$version='2012-11-30'; $fixed=0; # Determine if we're running from git or a canned copy of curl, @@ -702,6 +702,26 @@ if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) { } if ($configurebuild && !$crosscompile) { + my $host_triplet = get_host_triplet(); + # build example programs for selected build targets + if(($host_triplet =~ /([^-]+)-([^-]+)-irix(.*)/) || + ($host_triplet =~ /([^-]+)-([^-]+)-aix(.*)/) || + ($host_triplet =~ /([^-]+)-([^-]+)-osf(.*)/) || + ($host_triplet =~ /([^-]+)-([^-]+)-solaris2(.*)/)) { + chdir "$pwd/$build/docs/examples"; + logit_spaced "build examples"; + open(F, "$make -i 2>&1 |") or die; + open(LOG, ">$buildlog") or die; + while (<F>) { + s/$pwd//g; + print; + print LOG; + } + close(F); + close(LOG); + chdir "$pwd/$build"; + } + # build and run full test suite my $o; if($runtestopts) { $o = "TEST_F=\"$runtestopts\" "; |