Re-work the test suite so it now works with Automake (via "make check").
[mmh] / test / mhshow / test-cte-binary
old mode 100644 (file)
new mode 100755 (executable)
similarity index 87%
rename from test/tests/mhshow/test-cte-binary
rename to test/mhshow/test-cte-binary
index 26b0f08..e5654bb
@@ -5,6 +5,13 @@
 #
 ######################################################
 
+if [ -z "${MH_TEST_COMMON}" ]; then
+    echo "MH_TEST_COMMON not set; try running via 'make check'"
+fi
+
+. ${MH_TEST_COMMON}
+
+setup_test
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual