Support auto disabling of unit tests with an optional enabled script

Restore the unicode test case using that.
This commit is contained in:
Maxime Coste 2015-11-16 21:17:23 +00:00
parent 9aa1b770fd
commit 20bd4173e2
5 changed files with 7 additions and 0 deletions

1
test/compose/unicode/cmd Normal file
View File

@ -0,0 +1 @@
~

2
test/compose/unicode/enabled Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
locale | grep LC_CTYPE | grep 'utf8\|UTF-8' > /dev/null

1
test/compose/unicode/in Normal file
View File

@ -0,0 +1 @@
%(maïs mélange bientôt)

1
test/compose/unicode/out Normal file
View File

@ -0,0 +1 @@
MAÏS MÉLANGE BIENTÔT

View File

@ -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