Re-work the test suite so it now works with Automake (via "make check").
[mmh] / test / folder / test-total
old mode 100644 (file)
new mode 100755 (executable)
similarity index 65%
rename from test/tests/folder/test-total
rename to test/folder/test-total
index ff29310..86b304f
@@ -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
+
 output=`folder -total +inbox`
 if test x"$output" != x'TOTAL = 10 messages in 1 folder.' ; then
     exit 1