]> diplodocus.org Git - nmh/blob - test/mhbuild/test-mhbuild
Add gcc's malloc function attribute.
[nmh] / test / mhbuild / test-mhbuild
1 #!/bin/sh
2 ######################################################
3 #
4 # Basic mhbuild tests.
5 #
6 ######################################################
7
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir=`dirname "$0"`/../..
10 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
11 fi
12
13 . "$MH_OBJ_DIR/test/common.sh"
14
15 setup_test
16
17 expected="$MH_TEST_DIR/test-mhbuild$$.expected"
18
19 start_test "-nodirectives"
20 cat >"$expected" <<'EOF'
21 Subject: test -nodirectives
22 MIME-Version: 1.0
23 Content-Type: text/plain; charset="us-ascii"
24
25 #define line begins with # and ends with backslash-newline \
26 all characters should be preserved
27 EOF
28
29 cat >"`mhpath new`" <<'EOF'
30 Subject: test -nodirectives
31 --------
32 #define line begins with # and ends with backslash-newline \
33 all characters should be preserved
34 EOF
35
36 run_test "mhbuild -nodirectives `mhpath last`"
37 check "`mhpath last`" "$expected"
38
39
40 finish_test
41 exit $failed