From: Ken Hornstein Date: Fri, 31 Aug 2012 13:46:03 +0000 (-0400) Subject: New test for folder -recurse X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=dbe10f17b805b0ef991bb0c987fead044ad37f06;p=mmh New test for folder -recurse --- diff --git a/Makefile.am b/Makefile.am index 5fc505e..a8d14b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,8 @@ TESTS = test/ali/test-ali \ test/burst/test-burst \ test/comp/test-comp-format \ test/folder/test-create test/folder/test-packf \ - test/folder/test-sortm test/folder/test-total \ + test/folder/test-recurse test/folder/test-sortm \ + test/folder/test-total \ test/format/test-dp test/format/test-fmtdump \ test/format/test-localmbox test/format/test-myname \ test/format/test-myhost test/format/test-mymbox \ diff --git a/test/folder/test-recurse b/test/folder/test-recurse new file mode 100755 index 0000000..0b974a3 --- /dev/null +++ b/test/folder/test-recurse @@ -0,0 +1,25 @@ +#!/bin/sh +###################################################### +# +# Test of the -recuse option +# +###################################################### + +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR +fi + +. "$MH_OBJ_DIR/test/common.sh" + +setup_test + +folder -create +testfolder > /dev/null +folder -create +testfolder/folder1 > /dev/null +folder -create +testfolder/folder2 > /dev/null + +run_test 'folder -recurse +testfolder' 'testfolder+ has no messages ; (others). +testfolder/folder1 has no messages. +testfolder/folder2 has no messages.' + +exit $failed