diff options
author | obrien <obrien@FreeBSD.org> | 2012-06-12 23:16:00 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2012-06-12 23:16:00 +0000 |
commit | 262e4e322b4145a888fa95ca14c79cb0e2a8fb93 (patch) | |
tree | 71b708ca79a31fdd14d6faebf4193148355fd5ec /tools/regression | |
parent | 82d8f361abba1ad60fd234e39834abf5eb94d611 (diff) | |
download | FreeBSD-src-262e4e322b4145a888fa95ca14c79cb0e2a8fb93.zip FreeBSD-src-262e4e322b4145a888fa95ca14c79cb0e2a8fb93.tar.gz |
Add a test for the :tl & :tu modifiers.
Diffstat (limited to 'tools/regression')
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 $* |