Add regression test for '-V' command line option (requires r236346).

This commit is contained in:
obrien 2012-05-31 01:07:52 +00:00
parent 0a0b648466
commit ffd816d2cd
8 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# $FreeBSD$
#
# Test the -V option
#
FOO= foo
FOOBAR= ${FOO}bar
test1:
@echo "-V FOOBAR"
@${MAKE} -V FOOBAR
test2:
@echo '-V "$${FOOBAR}"'
@${MAKE} -V '$${FOOBAR}'

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1,2 @@
-V FOOBAR
foobar

View File

@ -0,0 +1,2 @@
-V "${FOOBAR}"
foobar

View File

@ -0,0 +1,14 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
. ../../common.sh
# Description
DESC="Variable expansion using command line '-V'"
# Run
TEST_N=2
eval_cmd $*