diff options
Diffstat (limited to 'tools/regression/usr.bin/make/variables/t1/test.t')
-rw-r--r-- | tools/regression/usr.bin/make/variables/t1/test.t | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/variables/t1/test.t b/tools/regression/usr.bin/make/variables/t1/test.t new file mode 100644 index 0000000..05014d9 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/t1/test.t @@ -0,0 +1,33 @@ +#!/bin/sh + +# $FreeBSD$ + +cd `dirname $0` +. ../../common.sh + +setup_test() +{ + cat > ${WORK_DIR}/Makefile << "_EOF_" +FILES = \ + main.c globals.h \ + util.c util.h \ + map.c map.h \ + parser.y lexer.l \ + cmdman.1 format.5 +all: + @echo "all files: ${FILES}" + @echo "cfiles: ${FILES:M*.c}" + @echo "hfiles: ${FILES:M*.h}" + @echo "grammer and lexer: ${FILES:M*.[ly]}" + @echo "man page: ${FILES:M*.[1-9]}" + @echo "utility files: ${FILES:Mutil.?}" + @echo "m files: ${FILES:Mm*}" +_EOF_ +} + +desc_test() +{ + echo "Variable expansion with M modifier" +} + +eval_cmd $1 |