summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/tests/suffixes/src_wild1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/tests/suffixes/src_wild1')
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/Makefile15
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/Makefile.test7
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/TEST1.a1
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/TEST2.a1
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/expected.status.11
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/expected.stderr.10
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/expected.stdout.12
-rw-r--r--usr.bin/make/tests/suffixes/src_wild1/legacy_test.sh19
8 files changed, 46 insertions, 0 deletions
diff --git a/usr.bin/make/tests/suffixes/src_wild1/Makefile b/usr.bin/make/tests/suffixes/src_wild1/Makefile
new file mode 100644
index 0000000..e10e8e8
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+TESTSDIR= ${TESTSBASE}/usr.bin/make/suffixes/src_wild1
+
+TAP_TESTS_SH= legacy_test
+
+FILESDIR= ${TESTSDIR}
+FILES= Makefile.test
+FILES+= TEST1.a
+FILES+= TEST2.a
+FILES+= expected.status.1
+FILES+= expected.stderr.1
+FILES+= expected.stdout.1
+
+.include <bsd.test.mk>
diff --git a/usr.bin/make/tests/suffixes/src_wild1/Makefile.test b/usr.bin/make/tests/suffixes/src_wild1/Makefile.test
new file mode 100644
index 0000000..d0258ad
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/Makefile.test
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+test1: TEST1.b
+ cat TEST1.a TEST2.a | diff -u - TEST1.b
+
+TEST1.b: *.a
+ cat ${.ALLSRC} >${.TARGET}
diff --git a/usr.bin/make/tests/suffixes/src_wild1/TEST1.a b/usr.bin/make/tests/suffixes/src_wild1/TEST1.a
new file mode 100644
index 0000000..da5569b
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/TEST1.a
@@ -0,0 +1 @@
+I'm test file 1.
diff --git a/usr.bin/make/tests/suffixes/src_wild1/TEST2.a b/usr.bin/make/tests/suffixes/src_wild1/TEST2.a
new file mode 100644
index 0000000..34f8508
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/TEST2.a
@@ -0,0 +1 @@
+I'm test file 2.
diff --git a/usr.bin/make/tests/suffixes/src_wild1/expected.status.1 b/usr.bin/make/tests/suffixes/src_wild1/expected.status.1
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/expected.status.1
@@ -0,0 +1 @@
+0
diff --git a/usr.bin/make/tests/suffixes/src_wild1/expected.stderr.1 b/usr.bin/make/tests/suffixes/src_wild1/expected.stderr.1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/expected.stderr.1
diff --git a/usr.bin/make/tests/suffixes/src_wild1/expected.stdout.1 b/usr.bin/make/tests/suffixes/src_wild1/expected.stdout.1
new file mode 100644
index 0000000..3cd2129
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/expected.stdout.1
@@ -0,0 +1,2 @@
+cat TEST1.a TEST2.a >TEST1.b
+cat TEST1.a TEST2.a | diff -u - TEST1.b
diff --git a/usr.bin/make/tests/suffixes/src_wild1/legacy_test.sh b/usr.bin/make/tests/suffixes/src_wild1/legacy_test.sh
new file mode 100644
index 0000000..053cc6c
--- /dev/null
+++ b/usr.bin/make/tests/suffixes/src_wild1/legacy_test.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+# $FreeBSD$
+
+. $(dirname $0)/../../common.sh
+
+# Description
+DESC="Source wildcard expansion."
+
+# Setup
+TEST_COPY_FILES="TEST1.a 644 TEST2.a 644"
+
+# Reset
+TEST_CLEAN="TEST1.b"
+
+# Run
+TEST_N=1
+TEST_1="-r test1"
+
+eval_cmd $*
OpenPOWER on IntegriCloud