Re-work the test suite so it now works with Automake (via "make check").
[mmh] / test / bad-input / test-header
old mode 100644 (file)
new mode 100755 (executable)
similarity index 91%
rename from test/tests/bad-input/test-header
rename to test/bad-input/test-header
index b9e76a1..35d680a
@@ -5,6 +5,14 @@
 #
 ######################################################
 
+if [ -z "${MH_TEST_COMMON}" ]; then
+    echo "MH_TEST_COMMON not set; try running via 'make check'"
+fi
+
+. ${MH_TEST_COMMON}
+
+setup_test
+
 # TODO: Move to a common file tests can source; need more framework...
 failed=0
 check() {