From 16514f272fb42af6e9c7674a9bd6c9dce369231f Mon Sep 17 00:00:00 2001 From: David Terei Date: Wed, 20 Jul 2011 11:09:03 -0700 Subject: Move tests from tests/ghc-regress/* to just tests/* --- testsuite/tests/lib/IO/Makefile | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 testsuite/tests/lib/IO/Makefile (limited to 'testsuite/tests/lib/IO/Makefile') 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 utf16-test + +utf16le-test: utf8-test + iconv -f UTF-8 -t UTF-16LE utf16le-test + +utf16be-test: utf8-test + iconv -f UTF-8 -t UTF-16BE utf16be-test + +utf32-test: utf8-test + iconv -f UTF-8 -t UTF-32 utf32-test + +utf32le-test: utf8-test + iconv -f UTF-8 -t UTF-32LE utf32le-test + +utf32be-test: utf8-test + iconv -f UTF-8 -t UTF-32BE utf32be-test + +utf8-bom-test: utf16-test + iconv -f UTF-16LE -t UTF-8 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-小说 -- cgit v1.2.1