Remove h/nmh.h
[mmh] / test / tests / pick / test-normal-output
1 #!/bin/sh
2 ######################################################
3 #
4 # Test that all messages are picked and no ``0'' is giving out.
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 1
16 2
17 3
18 4
19 5
20 6
21 7
22 8
23 9
24 10
25 EOF
26 # Nothing should to go stderr
27 cat /dev/null > $expected_err
28
29 pick > $actual_out 2> $actual_err
30 diff -u $expected_err $actual_err
31 diff -u $expected_out $actual_out