605881518e397b7df8b57e866722d3500d14bcbb
[mmh] / test / tests / pick / test-thread-without-msgid
1 #!/bin/sh
2 ######################################################
3 #
4 # Test that the -thread option works.
5 #
6 ######################################################
7
8 expected_err=$MH_TEST_DIR/$$.expected_err
9 expected_out=$MH_TEST_DIR/$$.expected_out
10 actual_err=$MH_TEST_DIR/$$.actual_err
11 actual_out=$MH_TEST_DIR/$$.actual_out
12
13 # All messages should be go to stdout
14 cat > $expected_out <<EOF
15 0
16 EOF
17 # Nothing should to go stderr
18 cat > $expected_err <<EOF
19 pick: message 5 is not part of a thread
20 EOF
21
22 pick -thread 5 > $actual_out 2> $actual_err
23 diff -u $expected_err $actual_err || exit 1
24 diff -u $expected_out $actual_out || exit 1