aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-08-10 04:09:35 +0200
committerGuenter Knauf <lists@gknw.net>2010-08-10 04:09:35 +0200
commit7115245f88845b505055a4f2daba18b07dd2d202 (patch)
tree6120f05414c0663d619bdaabf8b0bc8a622c3a3e
parentdc2157a0878f3a140fac07b97687b3c3da42616b (diff)
Make testcurl.pl Watcom-aware.
-rwxr-xr-xtests/testcurl.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index d44c3b135..733f0ea2f 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -72,7 +72,7 @@ use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
$timestamp);
# version of this script
-$version='2010-04-13';
+$version='2010-10-10';
$fixed=0;
# Determine if we're running from git or a canned copy of curl,
@@ -140,7 +140,7 @@ if ($^O eq 'MSWin32' || $targetos) {
# If no target defined on Win32 lets assume vc
$targetos = 'vc';
}
- if ($targetos =~ /vc/ || $targetos =~ /borland/) {
+ if ($targetos =~ /vc/ || $targetos =~ /borland/ || $targetos =~ /watcom/) {
$binext = '.exe';
$libext = '.lib';
}
@@ -163,7 +163,8 @@ if ($^O eq 'MSWin32' || $targetos) {
}
if (($^O eq 'MSWin32') &&
- ($targetos =~ /vc/ || $targetos =~ /mingw32/ || $targetos =~ /borland/)) {
+ ($targetos =~ /vc/ || $targetos =~ /mingw32/ ||
+ $targetos =~ /borland/ || $targetos =~ /watcom/)) {
# Set these things only when building ON Windows and for Win32 platform.
# FOR Windows since we might be cross-compiling on another system. Non-
@@ -497,6 +498,8 @@ if(!$make) {
}
# force to 'nmake' for VC builds
$make = "nmake" if ($targetos =~ /vc/);
+# force to 'wmake' for Watcom builds
+$make = "wmake" if ($targetos =~ /watcom/);
logit "going with $make as make";
# change to build dir
@@ -571,7 +574,7 @@ while (<F>) {
}
close(F);
-if (grepfile("define USE_ARES", "lib/curl_config$confsuffix.h")) {
+if (grepfile("^#define USE_ARES", "lib/curl_config$confsuffix.h")) {
print "\n";
logit "setup to build ares";