Add a test for the :tl & :tu modifiers.
This commit is contained in:
parent
364e72457f
commit
cca63ae56b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236977
15
tools/regression/usr.bin/make/variables/modifier_t/Makefile
Normal file
15
tools/regression/usr.bin/make/variables/modifier_t/Makefile
Normal file
@ -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}'
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
|
@ -0,0 +1 @@
|
||||
!"#$%&()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
|
@ -0,0 +1 @@
|
||||
!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~
|
14
tools/regression/usr.bin/make/variables/modifier_t/test.t
Normal file
14
tools/regression/usr.bin/make/variables/modifier_t/test.t
Normal file
@ -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 $*
|
Loading…
Reference in New Issue
Block a user