X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6106441685a38400d9aa94ccb7218218102f941c..9f7d48c36f01ba29974834cbcdc24e4c2e1f07d9:/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