summaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin/make/shell/builtin
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2005-05-31 14:13:07 +0000
committerHartmut Brandt <harti@FreeBSD.org>2005-05-31 14:13:07 +0000
commitd9ea463fbfddfbd6506de80bbe3446b8301f1e1b (patch)
tree8fadeb40f8b4f59b7bf77d2e8290da809f57ffef /tools/regression/usr.bin/make/shell/builtin
parent500b4917abd738f0a52e4b8a39bd3ad285e580eb (diff)
Notes
Diffstat (limited to 'tools/regression/usr.bin/make/shell/builtin')
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/Makefile14
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.status1
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.status.11
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.status.21
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.stderr1
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.stderr.1 (renamed from tools/regression/usr.bin/make/shell/builtin/expected.stdout)0
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.stderr.20
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.stdout.11
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/expected.stdout.21
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/sh (renamed from tools/regression/usr.bin/make/shell/builtin/sh.sh)0
-rw-r--r--tools/regression/usr.bin/make/shell/builtin/test.t16
11 files changed, 16 insertions, 20 deletions
diff --git a/tools/regression/usr.bin/make/shell/builtin/Makefile b/tools/regression/usr.bin/make/shell/builtin/Makefile
index 6fe42abe0ef5..03764784e1a0 100644
--- a/tools/regression/usr.bin/make/shell/builtin/Makefile
+++ b/tools/regression/usr.bin/make/shell/builtin/Makefile
@@ -7,17 +7,7 @@
#
# $FreeBSD$
-all: sh
- @MAKEFLAGS= ${MAKE} -B no-builtin
- @MAKEFLAGS= ${MAKE} -B builtin
-
-sh: sh.sh
- @cp ${.CURDIR}/sh.sh ${.OBJDIR}/sh
- @chmod +x ${.OBJDIR}/sh
-
-.ifmake builtin || no-builtin
-
-.SHELL: path="${.OBJDIR}/sh"
+.SHELL: path="${.CURDIR}/sh"
.PHONY: builtin no-builtin
@@ -26,5 +16,3 @@ builtin:
no-builtin:
@ls -d .
-
-.endif
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.status b/tools/regression/usr.bin/make/shell/builtin/expected.status
deleted file mode 100644
index 0cfbf08886fc..000000000000
--- a/tools/regression/usr.bin/make/shell/builtin/expected.status
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.status.1 b/tools/regression/usr.bin/make/shell/builtin/expected.status.1
new file mode 100644
index 000000000000..573541ac9702
--- /dev/null
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.status.1
@@ -0,0 +1 @@
+0
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.status.2 b/tools/regression/usr.bin/make/shell/builtin/expected.status.2
new file mode 100644
index 000000000000..573541ac9702
--- /dev/null
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.status.2
@@ -0,0 +1 @@
+0
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.stderr b/tools/regression/usr.bin/make/shell/builtin/expected.stderr
deleted file mode 100644
index 628ea8fef6c7..000000000000
--- a/tools/regression/usr.bin/make/shell/builtin/expected.stderr
+++ /dev/null
@@ -1 +0,0 @@
-make: don't know how to make sh.sh. Stop
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.stdout b/tools/regression/usr.bin/make/shell/builtin/expected.stderr.1
index e69de29bb2d1..e69de29bb2d1 100644
--- a/tools/regression/usr.bin/make/shell/builtin/expected.stdout
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.stderr.1
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.stderr.2 b/tools/regression/usr.bin/make/shell/builtin/expected.stderr.2
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.stderr.2
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.stdout.1 b/tools/regression/usr.bin/make/shell/builtin/expected.stdout.1
new file mode 100644
index 000000000000..9c558e357c41
--- /dev/null
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.stdout.1
@@ -0,0 +1 @@
+.
diff --git a/tools/regression/usr.bin/make/shell/builtin/expected.stdout.2 b/tools/regression/usr.bin/make/shell/builtin/expected.stdout.2
new file mode 100644
index 000000000000..e350eaf8c7ea
--- /dev/null
+++ b/tools/regression/usr.bin/make/shell/builtin/expected.stdout.2
@@ -0,0 +1 @@
+-ec exec ls -d .
diff --git a/tools/regression/usr.bin/make/shell/builtin/sh.sh b/tools/regression/usr.bin/make/shell/builtin/sh
index 3a507b87f674..3a507b87f674 100644
--- a/tools/regression/usr.bin/make/shell/builtin/sh.sh
+++ b/tools/regression/usr.bin/make/shell/builtin/sh
diff --git a/tools/regression/usr.bin/make/shell/builtin/test.t b/tools/regression/usr.bin/make/shell/builtin/test.t
index a20fb2a761f1..1798afcc3207 100644
--- a/tools/regression/usr.bin/make/shell/builtin/test.t
+++ b/tools/regression/usr.bin/make/shell/builtin/test.t
@@ -5,9 +5,15 @@
cd `dirname $0`
. ../../common.sh
-desc_test()
-{
- echo "Check that a command line with a builtin is passed to the shell."
-}
+# Description
+DESC="Check that a command line with a builtin is passed to the shell."
-eval_cmd $1
+# Setup
+TEST_COPY_FILES="sh 755"
+
+# Run
+TEST_N=2
+TEST_1="-B no-builtin"
+TEST_2="-B builtin"
+
+eval_cmd $*