196b03b808c6988d9a45eba29ccb49e40e455735
[mmh] / test / format / test-localmbox
1 #!/bin/sh
2 #
3 # Test that we can retrieve the local mailbox name from the profile via
4 # component functions
5 #
6
7 if [ -z "${MH_TEST_COMMON}" ]; then
8         echo "MH_TEST_COMMON not set; try running via 'make check'"
9 fi
10
11 . ${MH_TEST_COMMON}
12
13 setup_test
14
15 testname="Some User <some@domain.com>"
16
17 echo "Local-Mailbox: ${testname}" >> ${MH}
18
19 # We can use "ap" to get the output of format commands
20
21 testoutput=$(${MH_LIB_DIR}/ap -format "%(profile Local-Mailbox)" ignore)
22
23 if [ x"${testname}" != x"${testoutput}" ]; then
24         echo "Expected ${testname}, got ${testoutput}"
25         exit 1
26 fi
27
28 exit 0