[commit: testsuite] master: Add a simple test for compiling and running a program that uses the GHC API (86468a2)

Ian Lynagh igloo at earth.li
Wed Mar 13 03:28:48 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/86468a250ff1ecbbda09e3e37d6bed3bf7fcfdb0

>---------------------------------------------------------------

commit 86468a250ff1ecbbda09e3e37d6bed3bf7fcfdb0
Author: Ian Lynagh <igloo at earth.li>
Date:   Mon Mar 11 00:16:27 2013 +0100

    Add a simple test for compiling and running a program that uses the GHC API

>---------------------------------------------------------------

 tests/ghc-api/all.T                                |    1 +
 tests/ghc-api/ghcApi.hs                            |    8 ++++++++
 .../ghcApi.stdout}                                 |    0 
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/ghc-api/all.T b/tests/ghc-api/all.T
index 9fa7672..ee58181 100644
--- a/tests/ghc-api/all.T
+++ b/tests/ghc-api/all.T
@@ -1,3 +1,4 @@
 test('T6145', when(fast(), skip),
               run_command,
               ['$MAKE -s --no-print-directory T6145'])
+test('ghcApi', normal, compile_and_run, ['-package ghc'])
diff --git a/tests/ghc-api/ghcApi.hs b/tests/ghc-api/ghcApi.hs
new file mode 100644
index 0000000..90784e8
--- /dev/null
+++ b/tests/ghc-api/ghcApi.hs
@@ -0,0 +1,8 @@
+
+module Main where
+
+import Config
+
+main :: IO ()
+main = putStrLn cProjectName
+
diff --git a/tests/driver/conflicting_flags/conflicting_flags.stdout b/tests/ghc-api/ghcApi.stdout
similarity index 100%
copy from tests/driver/conflicting_flags/conflicting_flags.stdout
copy to tests/ghc-api/ghcApi.stdout





More information about the ghc-commits mailing list