]> diplodocus.org Git - nmh/blob - test/folder/test-create
Makefile.am: Remove `-I./sbr' from sbr_libmh_a_CPPFLAGS.
[nmh] / test / folder / test-create
1 #!/bin/sh
2 ######################################################
3 #
4 # Test the creation and removal of a folder.
5 #
6 ######################################################
7
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir=`dirname "$0"`/../..
10 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
11 fi
12
13 . "$MH_OBJ_DIR/test/common.sh"
14
15 setup_test
16
17 run_prog folder -create +testfolder > /dev/null
18 if [ -d "$MH_TEST_DIR/Mail/testfolder" ]; then
19 :
20 else
21 exit 1
22 fi
23
24 run_prog rmf +testfolder > /dev/null
25 if [ -d "$MH_TEST_DIR/Mail/testfolder" ]; then
26 # Test failed
27 exit 1
28 fi