summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/.gitignore1
-rw-r--r--test/Makefile.am22
-rwxr-xr-xtest/unit/no_cxxtest6
3 files changed, 19 insertions, 10 deletions
diff --git a/config/.gitignore b/config/.gitignore
index dfeb8c222..c1e3d2423 100644
--- a/config/.gitignore
+++ b/config/.gitignore
@@ -9,3 +9,4 @@
/missing
/ltoptions.m4
/install-sh
+/test-driver
diff --git a/test/Makefile.am b/test/Makefile.am
index 014aecc43..6cccca05c 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -15,7 +15,7 @@ units systemtests regress regress0 regress1 regress2 regress3:
test: check
am__tty_colors = \
-red=; grn=; lgn=; blu=; std=; \
+red=; grn=; lgn=; blu=; mag=; std=; \
test "X$(AM_COLOR_TESTS)" != Xno \
&& test "X$$TERM" != Xdumb \
&& { test "X$(AM_COLOR_TESTS)" = Xalways || test -t 1 2>/dev/null; } \
@@ -24,6 +24,7 @@ test "X$(AM_COLOR_TESTS)" != Xno \
grn=''; \
lgn=''; \
blu=''; \
+ mag=''; \
std=''; \
}
@@ -61,14 +62,23 @@ check-recursive: check-pre
check-pre:
@rm -f $(subdirs_to_check:=/test-suite.log)
+if HAVE_CXXTESTGEN
+HANDLE_UNIT_TEST_SUMMARY = \
+ if test -s "unit/test-suite.log"; then :; else \
+ echo "$${red}Unit tests did not run; maybe there were compilation problems ?$$std"; \
+ fi
+else
+HANDLE_UNIT_TEST_SUMMARY = \
+ echo "$${mag}Unit tests not supported, since CxxTest wasn't found$$std"; \
+ rm -f "unit/test-suite.log"
+endif
+
if AUTOMAKE_1_11
# automake 1.11 version
check-local:
@$(am__tty_colors); \
echo $${blu}=============================== TESTING SUMMARY =============================$$std; \
- if test -s "unit/test-suite.log"; then :; else \
- echo "$${red}Unit tests did not run; maybe there were compilation problems ?$$std"; \
- fi; \
+ $(HANDLE_UNIT_TEST_SUMMARY); \
if test -s "system/test-suite.log"; then :; else \
echo "$${red}System tests did not run; maybe there were compilation problems ?$$std"; \
fi; \
@@ -90,9 +100,7 @@ else
check-local:
@$(am__tty_colors); \
echo $${blu}=============================== TESTING SUMMARY =============================$$std; \
- if test -s "unit/test-suite.log"; then :; else \
- echo "$${red}Unit tests did not run; maybe there were compilation problems ?$$std"; \
- fi; \
+ $(HANDLE_UNIT_TEST_SUMMARY); \
if test -s "system/test-suite.log"; then :; else \
echo "$${red}System tests did not run; maybe there were compilation problems ?$$std"; \
fi; \
diff --git a/test/unit/no_cxxtest b/test/unit/no_cxxtest
index cf8b8d729..57e5064d9 100755
--- a/test/unit/no_cxxtest
+++ b/test/unit/no_cxxtest
@@ -3,10 +3,10 @@
echo
echo '***************************************************************************'
echo '* *'
-echo '* ERROR: CxxTest was not found at configure-time; tests cannot be run. *'
+echo '* WARNING: CxxTest not found at configure time; tests cannot be run. *'
echo '* *'
echo '***************************************************************************'
echo
-exit 1
-
+# skip this test, rather than reporting an error
+exit 77
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback