New test for folder -recurse
authorKen Hornstein <kenh@pobox.com>
Fri, 31 Aug 2012 13:46:03 +0000 (09:46 -0400)
committerKen Hornstein <kenh@pobox.com>
Fri, 31 Aug 2012 13:46:03 +0000 (09:46 -0400)
Makefile.am
test/folder/test-recurse [new file with mode: 0755]

index 5fc505e..a8d14b3 100644 (file)
@@ -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 (executable)
index 0000000..0b974a3
--- /dev/null
@@ -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