Repository navigation
Open
Labels
Description
This is an issue documenting known bugs of BNFC that cause some system tests to fail. We keep the tests in the test suite nevertheless, to stimulate further bug fixing.
Currently known issues for some of the backends:
- Use white-space as separator #70: whitespace separators
- Support block comment delimiters > 2 characters in Haskell backend #202: long block comment delimiters (Ocaml)
- C -family backends generate incorrect parser #235: position tokens not supported by some backends, see Position tokens not supported by cpp-nostl backend #297
- support for utf-8 / unicode characters #249: unicode
- RegExp: Nested subtractions are translated wrongly to Alex #256: Regex: nested subtractions (C++)
- Some backends do not implement the
definepragma #266:definepragma - Make backends more resilient against keyword and Prelude clashes #278: keyword clashes
- Error location missing with recent
menhir(starting with 2021-12-30 release) #414:errorhandling in Menhir, affects100_coercion_lists
Test run of 2019-12-16:
-
Tests: 484
-
Passed: 436
-
Pending: 0
-
Failures: 14
-
Errors: 34
-
Timed out: 0
-
Filtered: 0
-
Failures:
- Parameterized tests:Java (with antlr):Java (with antlr):70_WhiteSpaceSeparator
- Parameterized tests:Java (with jflex and line numbers):Java (with jflex and line numbers):70_WhiteSpaceSeparator
- Parameterized tests:Java (with jflex):Java (with jflex):70_WhiteSpaceSeparator
- Parameterized tests:Java (with namespace):Java (with namespace):70_WhiteSpaceSeparator
- Parameterized tests:Java (with line numbers):Java (with line numbers):70_WhiteSpaceSeparator
- Parameterized tests:Java:Java:70_WhiteSpaceSeparator
- Parameterized tests:OCaml:OCaml:70_WhiteSpaceSeparator
- Parameterized tests:C++ (no STL):C++ (no STL):249_unicode
- Parameterized tests:C++ (no STL):C++ (no STL):70_WhiteSpaceSeparator
- Parameterized tests:C++ (with namespace):C++ (with namespace):249_unicode
- Parameterized tests:C++ (with namespace):C++ (with namespace):70_WhiteSpaceSeparator
- Parameterized tests:C++:C++:249_unicode
- Parameterized tests:C++:C++:70_WhiteSpaceSeparator
- Parameterized tests:C:C:70_WhiteSpaceSeparator
-
Errors:
- Parameterized tests:Java (with antlr):Java (with antlr):249_unicode
- Parameterized tests:Java (with antlr):Java (with antlr):278_Keywords
- Parameterized tests:Java (with jflex and line numbers):Java (with jflex and line numbers):249_unicode
- Parameterized tests:Java (with jflex and line numbers):Java (with jflex and line numbers):278_Keywords
- Parameterized tests:Java (with jflex):Java (with jflex):249_unicode
- Parameterized tests:Java (with jflex):Java (with jflex):278_Keywords
- Parameterized tests:Java (with namespace):Java (with namespace):249_unicode
- Parameterized tests:Java (with namespace):Java (with namespace):278_Keywords
- Parameterized tests:Java (with line numbers):Java (with line numbers):249_unicode
- Parameterized tests:Java (with line numbers):Java (with line numbers):278_Keywords
- Parameterized tests:Java:Java:249_unicode
- Parameterized tests:Java:Java:278_Keywords
- Parameterized tests:OCaml:OCaml:278_Keywords
- Parameterized tests:Haskell/GADT:Haskell/GADT:278_Keywords
- Parameterized tests:Haskell & Agda:Haskell & Agda:278_Keywords
- Parameterized tests:C++ (no STL):C++ (no STL):256_Regex
- Parameterized tests:C++ (no STL):C++ (no STL):278_Keywords
- Parameterized tests:C++ (with namespace):C++ (with namespace):278_Keywords
- Parameterized tests:C++:C++:278_Keywords
- Parameterized tests:C:C:249_unicode
- Parameterized tests:C:C:278_Keywords
- Current parameterized test:Java (with antlr):278_Keywords
- Current parameterized test:Java (with jflex and line numbers):278_Keywords
- Current parameterized test:Java (with jflex):278_Keywords
- Current parameterized test:Java (with namespace):278_Keywords
- Current parameterized test:Java (with line numbers):278_Keywords
- Current parameterized test:Java:278_Keywords
- Current parameterized test:OCaml:278_Keywords
- Current parameterized test:Haskell/GADT:278_Keywords
- Current parameterized test:Haskell & Agda:278_Keywords
- Current parameterized test:C++ (no STL):278_Keywords
- Current parameterized test:C++ (with namespace):278_Keywords
- Current parameterized test:C++:278_Keywords
- Current parameterized test:C:278_Keywords
Total execution time: 3815198ms
Activity
andreasabel commentedon Jan 2, 2020
2020-01-02
Tests: 512
Passed: 484
Pending: 0
Failures: 15
Errors: 13
Timed out: 0
Filtered: 0
Failures:
Errors:
Total execution time: 3688716ms
andreasabel commentedon Jan 3, 2020
2020-01-03
Tests: 529
Passed: 490
Pending: 0
Failures: 19
Errors: 20
Timed out: 0
Filtered: 0
Failures:
Errors:
Total execution time: 4015888ms
andreasabel commentedon Oct 5, 2020
2020-10-05
Tests: 537
Passed: 523
Pending: 0
Failures: 0
Errors: 14
Timed out: 0
Filtered: 0
Errors:
Total execution time: 4627800ms
andreasabel commentedon Oct 6, 2020
2020-10-06
Tests: 555
Passed: 542
Pending: 0
Failures: 7
Errors: 6
Timed out: 0
Filtered: 0
Failures:
Errors:
Total execution time: 4161630ms
andreasabel commentedon Oct 7, 2020
2020-10-07
Tests: 555
Passed: 549
Pending: 0
Failures: 1
Errors: 5
Timed out: 0
Filtered: 0
Failures:
Errors:
Total execution time: 7037705ms (had a zoom meeting running)
andreasabel commentedon Oct 8, 2020
2020-10-08
Tests: 549
Passed: 547
Errors:
Again:
Tests: 567
Passed: 565
Errors:
Total execution time: 4253609ms
andreasabel commentedon May 2, 2021
New breakage is
Parameterized tests:Haskell/GADT:Haskell/GADT:289_LexerKeywordsbecause categoriesERRORandERROR_introduce a clash with their generated tagsERROR_andERROR__.andreasabel commentedon May 18, 2021
The test for
examples/define/test.cfis broken for the C backend, because of #363 (comment).andreasabel commentedon Feb 10, 2022
2022-02-10:
Tests: 627
Passed: 620
Failures: 2
Errors: 5
Failures:
Errors:
Total execution time: 5354297ms
andreasabel commentedon Dec 14, 2022
2022-12-14:
Tests: 646
Passed: 640
Failures: 1
Errors: 5
Failures:
Errors:
Total execution time: 4805463ms
andreasabel commentedon Jul 26, 2023
2023-07-26:
Tests: 627
Passed: 620
Pending: 0
Failures: 1
Errors: 6
Timed out: 0
Filtered: 0
Failures:
Errors:
andreasabel commentedon Jul 26, 2023
2023-07-26 after fixing #455 and #451:
Commelina commentedon Mar 3, 2026
2026-03-03
Based on bnfc-2.9.6.2 (da5d8a2)
Env: AMD Ryzen 7 6800HS (16) @ 3.2GHz, Arch Linux x86_64 6.18.9-arch1-2
Total execution time: 2311373ms
make: *** [Makefile:4: test] Error 2
make: Leaving directory '/bnfc/testing'
real 38m31.729s
user 79m40.032s
sys 5m22.868s
Comment on errors:
It seems that most of the errors are caused by
hlintComment on execution time:
There are at least the following points for further optimization:
-jof the HTF test framework--agda: ghc uses-XNoImplicitPreludebut agda calls with-Oso everyAbsXXXhas to be rebuilt, very slow)Read,FoldableandTraversable, see ghc docs)It should be possible to reduce the test time to <30min on standard CI machine (
2c7G4c16G).Some profile info according to item 2 above
cubicaltt.cfErrors: