aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-03 14:38:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-03 14:38:07 +0000
commita8db25f48b04c140695e77e6c59ee64864e67902 (patch)
tree4aa6191adef42692d6121740454f31fecbe8aced
parent20705ca311e8cdf7ed4e7983f822d30194649c3c (diff)
the test targets won't invoke the test suite if curl is built cross-compiled.
Pointed out by Chris Gaukroger.
-rw-r--r--tests/Makefile.am20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 026e29b01..1306e210e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -33,14 +33,26 @@ CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
curl:
@cd $(top_builddir) && $(MAKE)
+if CROSSCOMPILING
+TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
+TEST_Q = $(TEST)
+TEST_F = $(TEST)
+TEST_T = $(TEST)
+else # if not cross-compiling:
+TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
+TEST_Q = $(TEST) -s -a
+TEST_F = $(TEST) -a -p
+TEST_T = $(TEST) -t
+endif
+
test: all
- srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
+ $(TEST)
quiet-test: all
- srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl -s -a
+ $(TEST_Q)
full-test: all
- srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl -a -p
+ $(TEST_F)
torture-test: all
- srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl -t
+ $(TEST_T)