Rearranged test suite environment variables so that individual tests
[mmh] / 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 folder -create +testfolder > /dev/null
18 if [ ! -d "$MH_TEST_DIR/Mail/testfolder" ]; then
19     exit 1
20 fi
21
22 rmf +testfolder > /dev/null
23 if [ -d "$MH_TEST_DIR/Mail/testfolder" ]; then
24     # Test failed
25     exit 1
26 fi