[commit: testsuite] master: Add test suite for #8602 (b7bc064)
git at git.haskell.org
git at git.haskell.org
Tue Jan 7 14:31:04 UTC 2014
Repository : ssh://git@git.haskell.org/testsuite
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b7bc064e3cdd439eb54bc6f978a067aa2eef7927/testsuite
>---------------------------------------------------------------
commit b7bc064e3cdd439eb54bc6f978a067aa2eef7927
Author: Chris Heller <hellertime at gmail.com>
Date: Thu Jan 2 16:54:58 2014 -0500
Add test suite for #8602
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
b7bc064e3cdd439eb54bc6f978a067aa2eef7927
tests/driver/T8602/A.hs | 1 +
tests/driver/T8602/T8602.T | 1 +
tests/driver/T8602/T8602.script | 3 +++
tests/driver/T8602/T8602.stderr | 2 ++
4 files changed, 7 insertions(+)
diff --git a/tests/driver/T8602/A.hs b/tests/driver/T8602/A.hs
new file mode 100644
index 0000000..3203d94
--- /dev/null
+++ b/tests/driver/T8602/A.hs
@@ -0,0 +1 @@
+{-# OPTIONS_GHC -F -pgmF ./t8602.sh -optF A -optF B -optF C #-}
diff --git a/tests/driver/T8602/T8602.T b/tests/driver/T8602/T8602.T
new file mode 100644
index 0000000..87fa8b6
--- /dev/null
+++ b/tests/driver/T8602/T8602.T
@@ -0,0 +1 @@
+test('T8602', extra_clean(['t8602.sh']), ghci_script, ['T8602.script'])
diff --git a/tests/driver/T8602/T8602.script b/tests/driver/T8602/T8602.script
new file mode 100644
index 0000000..746fb09
--- /dev/null
+++ b/tests/driver/T8602/T8602.script
@@ -0,0 +1,3 @@
+:! echo 'echo $4 $5 $6; exit 1' > t8602.sh
+:! chmod +x t8602.sh
+:load A
diff --git a/tests/driver/T8602/T8602.stderr b/tests/driver/T8602/T8602.stderr
new file mode 100644
index 0000000..3bbfa20
--- /dev/null
+++ b/tests/driver/T8602/T8602.stderr
@@ -0,0 +1,2 @@
+A B C
+phase `Haskell pre-processor' failed (exitcode = 1)
More information about the ghc-commits
mailing list