Re-work the test suite so it now works with Automake (via "make check").
[mmh] / test / new / test-basic
old mode 100644 (file)
new mode 100755 (executable)
similarity index 96%
rename from test/tests/new/test-basic
rename to test/new/test-basic
index 772b72f..3b2befd
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+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() {