]> granicus.if.org Git - curl/commitdiff
Add an alert already here if 'make test' is attempted for a cross-compile
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Mar 2005 00:44:32 +0000 (00:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Mar 2005 00:44:32 +0000 (00:44 +0000)
since there's no use building the whole test suite first and _then_ tell it
doesn't work anyway...

Makefile.am

index e759fe3af24699e64aa8efd2b2387d688305fce2..71e53027754197fab5700a1e895b6be6c816ab3c 100644 (file)
@@ -48,6 +48,15 @@ pdf:
 
 check: test
 
+if CROSSCOMPILING
+test-full: test
+test-torture: test
+
+test:
+       @echo "NOTICE: we can't run the tests when cross-compiling!"
+
+else
+
 test:
        @(cd tests; $(MAKE) all quiet-test)
 
@@ -57,6 +66,8 @@ test-full:
 test-torture:
        @(cd tests; $(MAKE) all torture-test)
 
+endif
+
 #
 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
 # must contain the following line: