diff options
author | obrien <obrien@FreeBSD.org> | 2012-05-31 01:07:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2012-05-31 01:07:52 +0000 |
commit | ffd816d2cda23405b301b6d9dec4f91f24f53d88 (patch) | |
tree | a59dd14b22def7c34dba19ca555ec80909df27ce /tools/regression | |
parent | 0a0b64846677c0b6ca231245db078844282ad05d (diff) | |
download | FreeBSD-src-ffd816d2cda23405b301b6d9dec4f91f24f53d88.zip FreeBSD-src-ffd816d2cda23405b301b6d9dec4f91f24f53d88.tar.gz |
Add regression test for '-V' command line option (requires r236346).
Diffstat (limited to 'tools/regression')
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 $* |