From cc2c7002e40d3879c8de4127c58d23ffd6d0454b Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Thu, 3 Mar 2022 11:24:49 +0100 Subject: [PATCH] testing: put C++ tests first, add --ansi --- testing/Main.hs | 2 +- testing/src/ParameterizedTests.hs | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/testing/Main.hs b/testing/Main.hs index 409970ce4..da85187e3 100644 --- a/testing/Main.hs +++ b/testing/Main.hs @@ -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 : diff --git a/testing/src/ParameterizedTests.hs b/testing/src/ParameterizedTests.hs index 620b94e47..79b6ff5f2 100644 --- a/testing/src/ParameterizedTests.hs +++ b/testing/src/ParameterizedTests.hs @@ -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"] } @@ -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"] @@ -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