summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/IO/Makefile
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-07-20 11:09:03 -0700
committerDavid Terei <davidterei@gmail.com>2011-07-20 11:26:35 -0700
commit16514f272fb42af6e9c7674a9bd6c9dce369231f (patch)
treee4f332b45fe65e2a7a2451be5674f887b42bf199 /testsuite/tests/lib/IO/Makefile
parentebd422aed41048476aa61dd4c520d43becd78682 (diff)
downloadhaskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz
Move tests from tests/ghc-regress/* to just tests/*
Diffstat (limited to 'testsuite/tests/lib/IO/Makefile')
-rw-r--r--testsuite/tests/lib/IO/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/testsuite/tests/lib/IO/Makefile b/testsuite/tests/lib/IO/Makefile
new file mode 100644
index 0000000000..6808f5f868
--- /dev/null
+++ b/testsuite/tests/lib/IO/Makefile
@@ -0,0 +1,48 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+test.concio001:
+ $(TEST_HC) $(TEST_HC_OPTS) --make -fforce-recomp -v0 concio001 -o concio001
+ (sleep 1; echo x) | ./concio001
+
+test.concio001.thr:
+ $(TEST_HC) $(TEST_HC_OPTS) --make -fforce-recomp -v0 -threaded concio001 -o concio001
+ (sleep 1; echo x) | ./concio001
+
+# NB. utf8-test should *not* have a final newline. The last char should be 'X'.
+utf16-test: utf8-test
+ iconv -f UTF-8 -t UTF-16 <utf8-test >utf16-test
+
+utf16le-test: utf8-test
+ iconv -f UTF-8 -t UTF-16LE <utf8-test >utf16le-test
+
+utf16be-test: utf8-test
+ iconv -f UTF-8 -t UTF-16BE <utf8-test >utf16be-test
+
+utf32-test: utf8-test
+ iconv -f UTF-8 -t UTF-32 <utf8-test >utf32-test
+
+utf32le-test: utf8-test
+ iconv -f UTF-8 -t UTF-32LE <utf8-test >utf32le-test
+
+utf32be-test: utf8-test
+ iconv -f UTF-8 -t UTF-32BE <utf8-test >utf32be-test
+
+utf8-bom-test: utf16-test
+ iconv -f UTF-16LE -t UTF-8 <utf16-test >utf8-bom-test
+
+hSetEncoding001.in : latin1 utf8-test utf16le-test utf16be-test utf16-test utf32le-test utf32be-test utf32-test utf8-bom-test
+ cat >$@ latin1 utf8-test utf16le-test utf16be-test utf16-test utf32-test utf32le-test utf32be-test utf8-bom-test
+
+environment001-test:
+ "$(TEST_HC)" --make -fforce-recomp -v0 environment001.hs -o environment001
+ GHC_TEST=马克斯 ./environment001 说
+
+3307-test:
+ "$(TEST_HC)" --make -fforce-recomp -v0 3307.hs -o 3307
+ echo Ni hao > chinese-file-小说
+ echo chinese-file-小说 > chinese-name
+ # The tests are run in whatever the default locale is. This is almost always UTF-8,
+ # but in cmd on Windows it will be the non-Unicode CP850 locale.
+ ./3307 chinese-file-小说