summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2012-06-12 23:16:00 +0000
committerobrien <obrien@FreeBSD.org>2012-06-12 23:16:00 +0000
commit262e4e322b4145a888fa95ca14c79cb0e2a8fb93 (patch)
tree71b708ca79a31fdd14d6faebf4193148355fd5ec /tools/regression
parent82d8f361abba1ad60fd234e39834abf5eb94d611 (diff)
downloadFreeBSD-src-262e4e322b4145a888fa95ca14c79cb0e2a8fb93.zip
FreeBSD-src-262e4e322b4145a888fa95ca14c79cb0e2a8fb93.tar.gz
Add a test for the :tl & :tu modifiers.
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/Makefile15
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.status.11
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.status.21
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.status.31
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.10
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.20
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.30
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.11
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.21
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.31
-rw-r--r--tools/regression/usr.bin/make/variables/modifier_t/test.t14
11 files changed, 35 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/Makefile b/tools/regression/usr.bin/make/variables/modifier_t/Makefile
new file mode 100644
index 0000000..53844ee
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+#
+# Test the t modifier.
+#
+# below is missing '
+ASCII= !"\#$$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
+
+test1:
+ @echo '${ASCII}'
+
+test2:
+ @echo '${ASCII:tl}'
+
+test3:
+ @echo '${ASCII:tu}'
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.status.1 b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.1
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.1
@@ -0,0 +1 @@
+0
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.status.2 b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.2
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.2
@@ -0,0 +1 @@
+0
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.status.3 b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.3
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.status.3
@@ -0,0 +1 @@
+0
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.1 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.1
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.2 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.2
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.3 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.3
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stderr.3
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.1 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.1
new file mode 100644
index 0000000..dff38fd
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.1
@@ -0,0 +1 @@
+!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.2 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.2
new file mode 100644
index 0000000..71a0f60
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.2
@@ -0,0 +1 @@
+!"#$%&()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.3 b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.3
new file mode 100644
index 0000000..6434c7b
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/expected.stdout.3
@@ -0,0 +1 @@
+!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~
diff --git a/tools/regression/usr.bin/make/variables/modifier_t/test.t b/tools/regression/usr.bin/make/variables/modifier_t/test.t
new file mode 100644
index 0000000..f564f6e
--- /dev/null
+++ b/tools/regression/usr.bin/make/variables/modifier_t/test.t
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# $FreeBSD$
+
+cd `dirname $0`
+. ../../common.sh
+
+# Description
+DESC="Variable expansion with t modifiers"
+
+# Run
+TEST_N=3
+
+eval_cmd $*
OpenPOWER on IntegriCloud