summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2014-05-14 16:33:20 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-14 16:33:20 +0000
commita3e19c5327dc75d7320f3ce13d317c30905150b3 (patch)
tree8a1a82a6424daa5c431a2a70a77cd340f04e382e
parent8b9b463cd9e32bf59c7ac5ee95211e3d5fe6d1a8 (diff)
parent39d10def34391c50fbb0e3420615014f124000cc (diff)
downloadsanitizer-a3e19c5327dc75d7320f3ce13d317c30905150b3.tar.gz
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
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e2e0bef..1eddcf3 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,9 @@ TEST_CLASSPATH=$(CLASSPATH):lib/htmlparser-1.3/htmlparser-1.3.jar:lib/junit/juni
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 @@ out/genfiles/org/owasp/html/AllExamples.java: src/main/org/owasp/html/examples/*
) > $@
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