am 39d10def: Run tests with the default locale set to Turkish so that we are more likely to catch bus involving unexpected triggering of Turkish-specific case-folding rules
* commit '39d10def34391c50fbb0e3420615014f124000cc':
Run tests with the default locale set to Turkish so that we are more likely to catch bus involving unexpected triggering of Turkish-specific case-folding rules
diff --git a/Makefile b/Makefile
index e2e0bef..1eddcf3 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,9 @@
JAVAC_FLAGS=-source 1.5 -target 1.5 -Xlint -encoding UTF-8
TEST_RUNNER=junit.textui.TestRunner
JASSERTS=-ea
+# Run tests in the Turkish locale to trigger any extra-case-folding-rule bugs
+# http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html
+TURKEYTEST=-Duser.counter=TR -Duser.language-tr
ifdef VERBOSE
override TEST_RUNNER=org.owasp.html.VerboseTestRunner
@@ -114,7 +117,8 @@
) > $@
runtests: tests
- java ${JASSERTS} -classpath out/classes:src/tests:${TEST_CLASSPATH} \
+ java ${TURKEYTEST} ${JASSERTS} \
+ -classpath out/classes:src/tests:${TEST_CLASSPATH} \
${TEST_RUNNER} org.owasp.html.AllTests
coverage: tests