summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-19 13:25:07 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-25 08:37:46 -0400
commitc346585b5f5054a85e48dc546e198c5be124340f (patch)
tree7a3d30e456c2811baf64010f059cb8ff6c7dac84 /testsuite/tests/driver
parentebd63e8de30470ccf8b65c11f0fc82705960b5cf (diff)
downloadhaskell-c346585b5f5054a85e48dc546e198c5be124340f.tar.gz
testsuite: A major revamp of the driver
This tries to put the testsuite driver into a slightly more maintainable condition: * Add type annotations where easily done * Use pathlib.Path instead of str paths * Make it pass the mypy typechecker
Diffstat (limited to 'testsuite/tests/driver')
-rw-r--r--testsuite/tests/driver/T12674/Makefile13
-rw-r--r--testsuite/tests/driver/T12674/all.T5
2 files changed, 15 insertions, 3 deletions
diff --git a/testsuite/tests/driver/T12674/Makefile b/testsuite/tests/driver/T12674/Makefile
new file mode 100644
index 0000000000..81ac0e67cf
--- /dev/null
+++ b/testsuite/tests/driver/T12674/Makefile
@@ -0,0 +1,13 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+# Uses Makefile to ensure that the testsuite driver doesn't normalize away the ./
+T12674:
+ $(TEST_HC) $(TEST_HC_OPTS) -v0 -o T12674 ./-T12674.hs ././-T12674c.c
+ ./T12674
+
+T12674w:
+ $(TEST_HC) $(TEST_HC_OPTS) -v0 -o T12674 .\\\-T12674.hs .\\\.\\\-T12674c.c
+ ./T12674
+
diff --git a/testsuite/tests/driver/T12674/all.T b/testsuite/tests/driver/T12674/all.T
index 0f9e205c9f..1d810c4691 100644
--- a/testsuite/tests/driver/T12674/all.T
+++ b/testsuite/tests/driver/T12674/all.T
@@ -1,5 +1,4 @@
-test('T12674', [extra_files(['-T12674.hs', '-T12674c.c'])],
- multi_compile, ['./-T12674.hs', [('././-T12674c.c', '')], '-v0'])
+test('T12674', [extra_files(['-T12674.hs', '-T12674c.c'])], makefile_test, [])
test('T12674w', [extra_files(['-T12674.hs', '-T12674c.c']),
unless(opsys('mingw32'), skip)],
- multi_compile, ['.\\\-T12674.hs', [('.\\\.\\\-T12674c.c', '')], '-v0'])
+ makefile_test, [])