Permalink
Browse files

Add a simple test for compiling and running a program that uses the G…

…HC API
  • Loading branch information...
1 parent 4c78884 commit 86468a250ff1ecbbda09e3e37d6bed3bf7fcfdb0 @igfoo igfoo committed Mar 10, 2013
Showing with 10 additions and 0 deletions.
  1. +1 −0 tests/ghc-api/all.T
  2. +8 −0 tests/ghc-api/ghcApi.hs
  3. +1 −0 tests/ghc-api/ghcApi.stdout
View
@@ -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'])
View
@@ -0,0 +1,8 @@
+
+module Main where
+
+import Config
+
+main :: IO ()
+main = putStrLn cProjectName
+
@@ -0,0 +1 @@
+The Glorious Glasgow Haskell Compilation System

0 comments on commit 86468a2

Please sign in to comment.