]> ocean-lang.org Git - ocean/commitdiff
oceani tests: check for conflicts.
authorNeilBrown <neil@brown.name>
Thu, 9 May 2019 12:05:23 +0000 (22:05 +1000)
committerNeilBrown <neil@brown.name>
Thu, 9 May 2019 12:05:23 +0000 (22:05 +1000)
If the grammar, when analysed as LR1, contains conflicts, then
don't proceed until they are resolved.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc

index d5e60b739236ab9417b19fa11e329d49e1032a22..bba5156a16b05f1c084afbc7404b975ffacc73ca 100644 (file)
@@ -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 \