Support auto disabling of unit tests with an optional enabled script
Restore the unicode test case using that.
This commit is contained in:
parent
9aa1b770fd
commit
20bd4173e2
1
test/compose/unicode/cmd
Normal file
1
test/compose/unicode/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
~
|
2
test/compose/unicode/enabled
Executable file
2
test/compose/unicode/enabled
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
locale | grep LC_CTYPE | grep 'utf8\|UTF-8' > /dev/null
|
1
test/compose/unicode/in
Normal file
1
test/compose/unicode/in
Normal file
|
@ -0,0 +1 @@
|
||||||
|
%(maïs mélange bientôt)
|
1
test/compose/unicode/out
Normal file
1
test/compose/unicode/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MAÏS MÉLANGE BIENTÔT
|
2
test/run
2
test/run
|
@ -18,6 +18,8 @@ main() {
|
||||||
name=$(basename $PWD)
|
name=$(basename $PWD)
|
||||||
if ! test -e cmd; then
|
if ! test -e cmd; then
|
||||||
echo "$indent$name"
|
echo "$indent$name"
|
||||||
|
elif test -x enabled && ! ./enabled; then
|
||||||
|
echo "$indent$name (disabled)" | colorize yellow normal
|
||||||
else
|
else
|
||||||
number_tests=$(($number_tests + 1))
|
number_tests=$(($number_tests + 1))
|
||||||
touch in; cp in out
|
touch in; cp in out
|
||||||
|
|
Loading…
Reference in New Issue
Block a user