Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2012 01:07:52 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236347 - head/tools/regression/usr.bin/make/variables/opt_V
Message-ID:  <201205310107.q4V17qKV097510@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 $*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205310107.q4V17qKV097510>