Skip to content

Commit

Permalink
testing: put C++ tests first, add --ansi
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Mar 3, 2022
1 parent afccbee commit cc2c700
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion testing/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runAllTests = do
succeedLBNFTests :
failLBNFTests :
-- ParameterizedTests.layoutTest :
ParameterizedTests.current : -- Uncomment for prioritized test case.
-- ParameterizedTests.current : -- Uncomment for prioritized test case.
-- RegressionTests.current :
ParameterizedTests.all :
RegressionTests.all :
Expand Down
24 changes: 12 additions & 12 deletions testing/src/ParameterizedTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,18 @@ haskellRunTestProg _lang args = do
parameters :: [TestParameters]
parameters = concat
[ []
-- C++ (extras)
, [ cBase { tpName = "C++ (with line numbers)"
, tpBnfcOptions = ["--cpp", "-l"] }
, cBase { tpName = "C++ (with namespace)"
, tpBnfcOptions = ["--cpp", "-p foobar"] }
]
-- C++ (basic)
, [ cBase { tpName = "C++ (no STL)"
, tpBnfcOptions = ["--cpp-nostl"] }
, cBase { tpName = "C++ (ANSI)"
, tpBnfcOptions = ["--cpp", "--ansi"] }
]
-- OCaml/Menhir
, [ ocaml { tpName = "OCaml/Menhir"
, tpBnfcOptions = ["--ocaml", "--menhir"] }
Expand All @@ -351,12 +363,6 @@ parameters = concat
, [ ocaml ]
-- Functor (Haskell & Agda)
, [ haskellAgdaFunctorParameters]
-- C++ (extras)
, [ cBase { tpName = "C++ (with line numbers)"
, tpBnfcOptions = ["--cpp", "-l"] }
, cBase { tpName = "C++ (with namespace)"
, tpBnfcOptions = ["--cpp", "-p foobar"] }
]
-- C
, [ TP { tpName = "C"
, tpBnfcOptions = ["--c"]
Expand All @@ -380,12 +386,6 @@ parameters = concat
, tpBnfcOptions = ["--c", "--line-numbers"] }

]
-- C++ (basic)
, [ cBase { tpName = "C++ (no STL)"
, tpBnfcOptions = ["--cpp-nostl"] }
, cBase { tpName = "C++"
, tpBnfcOptions = ["--cpp"] }
]
-- Agda
, [ haskellAgdaParameters ]
-- Java/ANTLR
Expand Down

0 comments on commit cc2c700

Please sign in to comment.