X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6106441685a38400d9aa94ccb7218218102f941c..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/test/folder/test-total diff --git a/test/folder/test-total b/test/folder/test-total index 86b304f3..59742484 100755 --- a/test/folder/test-total +++ b/test/folder/test-total @@ -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