0397e11cbb135680b936d40e7ac5e3509abe4b00
[mmh] / test / tests / pick / test-thread
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 cp `mhpath 5` 5.old
15 anno -component 'Message-Id' -text '<testid>' 5 -nodate
16 cat > $expected_out <<EOF
17 5
18 EOF
19 # Nothing should to go stderr
20 cat /dev/null > $expected_err
21
22 pick -thread 5 > $actual_out 2> $actual_err
23 mv 5.old `mhpath 5`
24 diff -u $expected_err $actual_err
25 diff -u $expected_out $actual_out