Re-work the test suite so it now works with Automake (via "make check").
[mmh] / test / repl / test-if-str
old mode 100644 (file)
new mode 100755 (executable)
similarity index 85%
rename from test/tests/repl/test-if-str
rename to test/repl/test-if-str
index 7582a7d..6bc0e09
@@ -8,6 +8,14 @@
 #
 ######################################################
 
+if [ -z "${MH_TEST_COMMON}" ]; then
+    echo "MH_TEST_COMMON not set; try running via 'make check'"
+fi
+
+. ${MH_TEST_COMMON}
+
+setup_test
+
 # create test replgroupcomps
 form=$MH_TEST_DIR/$$.replgroupcomps
 cat > $form <<EOF
@@ -31,6 +39,6 @@ Test1 writes:
 > This is message number 1
 EOF
 
-repl -editor true -format -form $form -group -nocc me -nowhatnowproc 1
+repl -editor true -format -form $form -group -nocc me -nowhatnowproc 1 || exit 1
 
 diff -u $expected $actual