Change test to check M modifier.
[dragonfly.git] / usr.bin / make / tests / variables / t1 / test.sh
1 #!/bin/sh
2
3 # $DragonFly: src/usr.bin/make/tests/variables/t1/test.sh,v 1.5 2005/02/26 11:23:54 okumoto Exp $
4
5 . ../../common.sh
6
7 run_test()
8 {
9         cat > Makefile << "_EOF_"
10 FILES   = \
11                 main.c globals.h \
12                 util.c util.h \
13                 map.c map.h \
14                 parser.y lexer.l \
15                 cmdman.1 format.5
16 all:
17         @echo "all files: ${FILES}"
18         @echo "cfiles: ${FILES:M*.c}"
19         @echo "hfiles: ${FILES:M*.h}"
20         @echo "grammer and lexer: ${FILES:M*.[ly]}"
21         @echo "man page: ${FILES:M*.[1-9]}"
22         @echo "utility files: ${FILES:Mutil.?}"
23         @echo "m files: ${FILES:Mm*}"
24 _EOF_
25         $MAKE 1> stdout 2> stderr
26         echo $? > status
27 }
28
29 desc_test()
30 {
31         echo "Variable expansion."
32 }
33
34 eval_cmd $1