2 ######################################################
4 # Test the locking of nmh metadata
6 ######################################################
10 if test -z "${MH_OBJ_DIR}"; then
11 srcdir=`dirname $0`/../..
12 MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
15 . "$MH_OBJ_DIR/test/common.sh"
20 # Set things up so we have a "cur" sequence
23 show +inbox 1 -nocheckmime -showproc cat > /dev/null
26 # mark read & writes sequences files, so use it to exercise the locking code
27 # for each locking algorithm
30 for locktype in $supported_locks
33 sed -e '/^datalocking:/d' < ${MH}.old > ${MH}
36 echo "datalocking: $locktype" >> ${MH}
38 run_prog mark 2 4 6 -sequence test -add
40 run_test 'mark -list' 'cur: 1
43 run_prog mark all -sequence test -delete