]> diplodocus.org Git - nmh/blob - test/sequences/test-out-of-range
Added locale profile component, value is passed to nmh_init().
[nmh] / test / sequences / test-out-of-range
1 #!/bin/sh
2 ############################################################
3 #
4 # Test to see if a out-of-range sequence is handled properly
5 #
6 ############################################################
7
8 set -e
9
10 if test -z "${MH_OBJ_DIR}"; then
11 srcdir=`dirname $0`/../..
12 MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
13 fi
14
15 . "$MH_OBJ_DIR/test/common.sh"
16
17 setup_test
18
19 cat > $MH_TEST_DIR/Mail/inbox/.mh_sequences <<EOS
20 cur: 120
21 test: 121
22 EOS
23
24 run_test 'mhpath +inbox test' 'mhpath: sequence test empty'
25
26 cat > $MH_TEST_DIR/Mail/inbox/.mh_sequences <<EOS
27 cur: 120
28 test: 121
29 EOS
30
31 #
32 # Yes, this is right. "cur" is special in that it can refer to messages
33 # that don't exist.
34 #
35 run_test 'mhpath +inbox cur' "$MH_TEST_DIR/Mail/inbox/120"
36
37 exit $failed