aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-12 21:14:53 +0200
committerYang Tse <yangsita@gmail.com>2012-04-12 21:21:10 +0200
commit1c3a99b52c98ce16ff2052dffd3235f88ef0af0e (patch)
treef1f515b8910874320b2a66c8678b19609edb6808
parent5f04843e5b5f358883f15304d69fade5cde79120 (diff)
testcurl.pl: build example programs for MinGW cross-compiles
-rwxr-xr-xtests/testcurl.pl17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 9b0e555c0..02293d80f 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -724,8 +724,23 @@ if ($configurebuild && !$crosscompile) {
}
else {
if($crosscompile) {
- # build test harness programs for selected cross-compiles
my $host_triplet = get_host_triplet();
+ # build example programs for selected cross-compiles
+ if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
+ 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 test harness programs for selected cross-compiles
if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
chdir "$pwd/$build/tests";
logit_spaced "build test harness";