Author: obrien
Date: Thu May 31 01:07:52 2012
New Revision: 236347
URL: http://svn.freebsd.org/changeset/base/236347

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

Added:
  head/tools/regression/usr.bin/make/variables/opt_V/
  head/tools/regression/usr.bin/make/variables/opt_V/Makefile   (contents, 
props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.status.1   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.status.2   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.1   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.2   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2   
(contents, props changed)
  head/tools/regression/usr.bin/make/variables/opt_V/test.t   (contents, props 
changed)

Added: head/tools/regression/usr.bin/make/variables/opt_V/Makefile
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/Makefile Thu May 31 
01:07:52 2012        (r236347)
@@ -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}'

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.status.1
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/expected.status.1        
Thu May 31 01:07:52 2012        (r236347)
@@ -0,0 +1 @@
+0

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.status.2
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/expected.status.2        
Thu May 31 01:07:52 2012        (r236347)
@@ -0,0 +1 @@
+0

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.1
==============================================================================

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.stderr.2
==============================================================================

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.1        
Thu May 31 01:07:52 2012        (r236347)
@@ -0,0 +1,2 @@
+-V FOOBAR
+foobar

Added: head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/expected.stdout.2        
Thu May 31 01:07:52 2012        (r236347)
@@ -0,0 +1,2 @@
+-V "${FOOBAR}"
+foobar

Added: head/tools/regression/usr.bin/make/variables/opt_V/test.t
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/variables/opt_V/test.t   Thu May 31 
01:07:52 2012        (r236347)
@@ -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 $*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to