Skip to content

Commit

Permalink
Compile C++ skeleton during system tests [issue #164]
Browse files Browse the repository at this point in the history
  • Loading branch information
gdetrez committed Feb 4, 2016
1 parent 4ad7937 commit 45f737f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions testing/src/ParameterizedTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,16 @@ parameters =
}
, base { tpName = "OCaml"
, tpBnfcOptions = ["--ocaml", "-m"] }
, base { tpName = "C"
, tpBnfcOptions = ["--c", "-m"]
, tpBuild = do cmd "make"
assertFileExists "Skeleton.h"
assertFileExists "Skeleton.c"
cmd "gcc" "-c" "Skeleton.c"
}
, base { tpName = "C++"
, tpBnfcOptions = ["--cpp", "-m"] }
, base { tpName = "C++ (no STL)"
, tpBnfcOptions = ["--cpp-nostl", "-m"] }
,
javaParams { tpName = "Java"
-- C
, cBase { tpName = "C"
, tpBnfcOptions = ["--c", "-m"] }
-- C++
, cBase { tpName = "C++"
, tpBnfcOptions = ["--cpp", "-m"] }
, cBase { tpName = "C++ (no STL)"
, tpBnfcOptions = ["--cpp-nostl", "-m"] }
-- Java
, javaParams { tpName = "Java"
, tpBnfcOptions = ["--java", "-m"] }

, javaParams { tpName = "Java (with namespace)"
Expand All @@ -179,6 +176,7 @@ parameters =
bin <- canonicalize ("." </> ("Test" <> lang))
cmd bin args
}
cBase = base { tpBuild = cmd "make" >> cmd "make" "Skeleton.o" }
hsParams = base
{ tpBuild = do cmd "hlint" "-i" "Redundant bracket" "-i" "Use camelCase" "."
cmd "make"
Expand Down

0 comments on commit 45f737f

Please sign in to comment.