Add regression test for '-V' command line option (requires r236346).
This commit is contained in:
parent
0a0b648466
commit
ffd816d2cd
15
tools/regression/usr.bin/make/variables/opt_V/Makefile
Normal file
15
tools/regression/usr.bin/make/variables/opt_V/Makefile
Normal 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}'
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1,2 @@
|
||||
-V FOOBAR
|
||||
foobar
|
@ -0,0 +1,2 @@
|
||||
-V "${FOOBAR}"
|
||||
foobar
|
14
tools/regression/usr.bin/make/variables/opt_V/test.t
Normal file
14
tools/regression/usr.bin/make/variables/opt_V/test.t
Normal 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 $*
|
Loading…
x
Reference in New Issue
Block a user