]> diplodocus.org Git - nmh/blobdiff - test/folder/test-total
It looks like some systems also need curses.h as well as term.h
[nmh] / test / folder / test-total
index 86b304f3bb4670bca279f8de77592ad506d5701c..59742484b10621bb3be235731c2494a9fb987a72 100755 (executable)
@@ -5,15 +5,16 @@
 #
 ######################################################
 
-if [ -z "${MH_TEST_COMMON}" ]; then
-    echo "MH_TEST_COMMON not set; try running via 'make check'"
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
 fi
 
-. ${MH_TEST_COMMON}
+. "$MH_OBJ_DIR/test/common.sh"
 
 setup_test
 
-output=`folder -total +inbox`
+output=`run_prog folder -total +inbox`
 if test x"$output" != x'TOTAL = 10 messages in 1 folder.' ; then
     exit 1
 fi