diff options
Diffstat (limited to 'tools/regression/usr.bin')
8 files changed, 47 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/syntax/semi/Makefile b/tools/regression/usr.bin/make/syntax/semi/Makefile new file mode 100644 index 0000000..12f5225 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ +# +# Test handling of escaped newlines. +# + +.ifmake test1 + +FOO= +BAR=bar +FOO != echo ${FOO} ; echo ${BAR} + +test1: + echo ${FOO} + +.endif + +.ifmake test2 + +FOO=foo +BAR=bar +FOO != echo ${FOO} ; echo ${BAR} + +test2: + echo ${FOO} + +.endif diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.status.1 b/tools/regression/usr.bin/make/syntax/semi/expected.status.1 new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.status.1 @@ -0,0 +1 @@ +0 diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.status.2 b/tools/regression/usr.bin/make/syntax/semi/expected.status.2 new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.status.2 @@ -0,0 +1 @@ +0 diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.stderr.1 b/tools/regression/usr.bin/make/syntax/semi/expected.stderr.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.stderr.1 diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.stderr.2 b/tools/regression/usr.bin/make/syntax/semi/expected.stderr.2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.stderr.2 diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.stdout.1 b/tools/regression/usr.bin/make/syntax/semi/expected.stdout.1 new file mode 100644 index 0000000..12b9617 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.stdout.1 @@ -0,0 +1,2 @@ +echo bar +bar diff --git a/tools/regression/usr.bin/make/syntax/semi/expected.stdout.2 b/tools/regression/usr.bin/make/syntax/semi/expected.stdout.2 new file mode 100644 index 0000000..be0fa55 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/expected.stdout.2 @@ -0,0 +1,2 @@ +echo foo bar +foo bar diff --git a/tools/regression/usr.bin/make/syntax/semi/test.t b/tools/regression/usr.bin/make/syntax/semi/test.t new file mode 100644 index 0000000..f52c9ab --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/semi/test.t @@ -0,0 +1,15 @@ +#!/bin/sh + +# $FreeBSD$ + +cd `dirname $0` +. ../../common.sh + +# Description +DESC="Test semicolon handling." + +# Run +TEST_N=2 +TEST_1_TODO="parser bug" + +eval_cmd $* |