diff options
8 files changed, 35 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/variables/opt_V/Makefile b/tools/regression/usr.bin/make/variables/opt_V/Makefile new file mode 100644 index 0000000..128e511 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/Makefile @@ -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}' diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.status.1 b/tools/regression/usr.bin/make/variables/opt_V/expected.status.1 new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.status.1 @@ -0,0 +1 @@ +0 diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.status.2 b/tools/regression/usr.bin/make/variables/opt_V/expected.status.2 new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.status.2 @@ -0,0 +1 @@ +0 diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.1 b/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.1 diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.2 b/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.2 diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1 b/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1 new file mode 100644 index 0000000..050db40 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1 @@ -0,0 +1,2 @@ +-V FOOBAR +foobar diff --git a/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2 b/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2 new file mode 100644 index 0000000..4da2aef --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2 @@ -0,0 +1,2 @@ +-V "${FOOBAR}" +foobar diff --git a/tools/regression/usr.bin/make/variables/opt_V/test.t b/tools/regression/usr.bin/make/variables/opt_V/test.t new file mode 100644 index 0000000..32a74b6 --- /dev/null +++ b/tools/regression/usr.bin/make/variables/opt_V/test.t @@ -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 $* |