diff options
author | Explorer09 <explorer09@gmail.com> | 2017-05-24 15:33:09 +0800 |
---|---|---|
committer | Explorer09 <explorer09@gmail.com> | 2017-05-24 15:33:09 +0800 |
commit | 1f3db3aeb311b58d50e5a9eb0e3e78f271255bb0 (patch) | |
tree | e7e2551e8a2a9d31d48e6a05d926bd903578f5e3 /tests/tableopts.sh | |
parent | db4f5e0fe5f2563e9d36b203f9fabb81aad2e4da (diff) |
test: use portable pattern substitution in tableopts.sh
Fixes: #222
Diffstat (limited to 'tests/tableopts.sh')
-rwxr-xr-x | tests/tableopts.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/tableopts.sh b/tests/tableopts.sh index 14dd704..497829e 100755 --- a/tests/tableopts.sh +++ b/tests/tableopts.sh @@ -17,7 +17,11 @@ tableopts_tables="" for kind in opt ser ver ; do for threading in nr r ; do for opt in -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem ; do - testname=tableopts_${kind}_${threading}${opt/%F/_F}.${kind} + bare_opt=${opt#-} + # The filenames must work on case-insensitive filesystems. + bare_opt=`echo ${bare_opt}| sed 's/F$/_F/'` + + testname=tableopts_${kind}_${threading}-${bare_opt}.${kind} if [ "${TABLEOPTS_TESTS}" = "" ] ;then TABLEOPTS_TESTS=${testname} if [ "$kind" = "ser" ] || [ "$kind" = "ver" ] ; then @@ -30,12 +34,10 @@ for kind in opt ser ver ; do fi fi - bare_opt=${opt#-} - bare_opt=${bare_opt/%F/_F} cat << EOF tableopts_${kind}_${threading}_${bare_opt}_${kind}_SOURCES = tableopts.l4 -${testname}\$(EXEEXT): tableopts_${kind}_${threading}${opt/%F/_F}.\$(OBJEXT) +${testname}\$(EXEEXT): tableopts_${kind}_${threading}-${bare_opt}.\$(OBJEXT) \$(AM_V_CCLD)\$(LINK) -o \$@ \$< EOF |