From bdabb1a2d91b54bceef373b2b06ea1e2d1006cf5 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 9 May 2019 22:05:23 +1000 Subject: [PATCH] oceani tests: check for conflicts. If the grammar, when analysed as LR1, contains conflicts, then don't proceed until they are resolved. Signed-off-by: NeilBrown --- csrc/oceani-tests.mdc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index d5e60b7..bba5156 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -38,6 +38,8 @@ arguments separated from the name by commas. For each test, there is a section tests:: oceani_test_suite oceani_test_suite: oceani coverage_oceani + @./parsergen --report --LR1 --tag Parser oceani.mdc | grep " - no conflicts" > /dev/null || \ + { echo "Grammar container conflicts, please review" ; exit 1; } @rm -rf coverage; mkdir -p coverage @cp *.gcno coverage @for T in $(oceani_tests); do \ -- 2.43.0