mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add regression test for '-V' command line option (requires r236346).
This commit is contained in:
parent
b3dc6c07e2
commit
ede27e69cf
8 changed files with 35 additions and 0 deletions
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…
Reference in a new issue