Skip to content

Make enable filtering of bnfc-system-tests, fix failing system tests - #5

Merged
hangingman merged 19 commits into
issues/293_enhance_new_cpp_poc_2from
issues/293_fix_failed_tests
May 3, 2022
Merged

hangingman merged 19 commits into
issues/293_enhance_new_cpp_poc_2from
issues/293_fix_failed_tests

Conversation

@hangingman

@hangingman hangingman commented Mar 23, 2022 •

Copy link
Copy Markdown
Owner

TODO

Fix broken tests, FYI: all tests list

Language Passed Tests check
C 60 60 ✔️
C++ 120 120 ✔️
Java 179 179 ✔️
Ocaml 60 60 ✔️
Haskell 159 160
Others 47 47 ✔️
Sum 626
  • C language cd testing; cabal run bnfc-system-tests -- "tests:C[^+]"

    • Bison.h:71:32: error: unknown type name ‘YYSTYPE’; did you mean ‘YYLTYPE’?
  • C++ cd testing; cabal run bnfc-system-tests -- "tests:C\\+"

    • Absyn.hh:109:33: error: ‘std::shared_ptr<Visitable> MyPosId::clone() const’ marked ‘override’, but does not override fbb6e6f

    • test.ll:100:24: error: ‘class Test::TestParser::semantic_type’ has no member named ‘_char’ 27e12ec

    • test.yy:92:134: error: cannot convert ‘int’ to ‘std::shared_ptr<int>’ 4f22b64 a0a9e7d

    • expected: 1 2 3 4 5 6 7 8 9 but got: 9 8 7 6 5 4 3 2 1 64c7aff

      • List element push_back/push_front problem
    • gf.ll:190:5: error: ‘BnfcFlexLexer’ has not been declared b030b61

      • Bison/Flex namespace problem
    • Parameterized tests:C++ (with namespace):C++ (with namespace):100_coercion_lists 710c56a

    • Parameterized tests:C++ (with line numbers):C++ (with line numbers):100_coercion_lists 710c56a

      • Last big problem, parsed expressions are slightly different, on bad01.in, bad02.in, bad03.in, bad04.in
      • --> fixed error handling
    • Parameterized tests:C++ (with namespace):C++ (with namespace):222_IntegerList cd05f33

    • Parameterized tests:C++ (with line numbers):C++ (with line numbers):222_IntegerList cd05f33

    • Parameterized tests:C++ (with namespace):Examples:test 68ed241

    • Parameterized tests:C++ (with namespace):Examples:cpp 113333e

      • list element type conversion problem
    • Parameterized tests:C++ (with namespace):C++ (with namespace):204_InternalToken 29df3ac

    • Parameterized tests:C++ (with namespace):C++ (with namespace):235_SymbolsOverlapTokens 29df3ac

    • Parameterized tests:C++ (with namespace):C++ (with namespace):266_define 4866dae

    • Parameterized tests:C++ (with line numbers):Examples:test 68ed241

    • Parameterized tests:C++ (with line numbers):Examples:cpp 113333e

    • Parameterized tests:C++ (with line numbers):C++ (with line numbers):204_InternalToken 29df3ac

    • Parameterized tests:C++ (with line numbers):C++ (with line numbers):235_SymbolsOverlapTokens 29df3ac

    • Parameterized tests:C++ (with line numbers):C++ (with line numbers):266_define

  • Java cd testing; cabal run bnfc-system-tests -- "tests:Java"

    • working!
  • Ocaml cd testing; cabal run bnfc-system-tests -- "tests:Ocaml"

    • transition table overflow, automaton is too big 5668eb8
    • Fixed, working!
  • Haskell cd testing; cabal run bnfc-system-tests -- "tests:Haskell"

    • Parameterized tests:Haskell/GADT:Haskell/GADT:289_LexerKeywords
[TEST] Parameterized tests:Haskell/GADT:Haskell/GADT:289_LexerKeywords
error running: make -f MyMakefile 'GHC_OPTS=-XNoImplicitPrelude -Wall -Werror'
exit status: 2
stderr: Grammar info written to: ParTest.info

AbsTest.hs:216:5: error:
    Multiple declarations of ‘ERROR_’
    Declared at: AbsTest.hs:21:339
                 AbsTest.hs:216:5
    |
216 |     ERROR_ :: String -> Tree 'ERROR__
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
make[1]: *** [MyMakefile:31: TestTest] エラー 1
@@@ Error! (1382ms)
  • Others cd testing; cabal run bnfc-system-tests -- -n "tests:(C|Java|Ocaml|Haskell)"
    • Regression tests:#127 Problems with C and entrypoints same error on C
    • Regression tests:#172 Prefixes not generated correctly in CPP same error on C

@hangingman
hangingman force-pushed the issues/293_fix_failed_tests branch 4 times, most recently from a2877e7 to 20c9294 Compare March 27, 2022 23:29
@hangingman

Copy link
Copy Markdown
Owner Author

It is difficult to add system-tests CI, because even if I used stack with nixpkgs it takes much time to test especially haskell (with adga). My heart breaks 😵‍💫
I will focus to fix build error on local environment.

@hangingman
hangingman force-pushed the issues/293_fix_failed_tests branch from 64de2e7 to 94050a0 Compare April 13, 2022 23:45
@hangingman

hangingman commented Apr 21, 2022 •

Copy link
Copy Markdown
Owner Author

I want a feature such that rerun only failed tests for HTF, but there is no such a feature.
tasty-rerun is my current ideal framework.
But, now I fixed C++ tests upto 106/120.

@hangingman

hangingman commented May 3, 2022 •

Copy link
Copy Markdown
Owner Author

C/C++ test cases are all fixed !!

@hangingman hangingman changed the title [WIP] Make enable filtering of bnfc-system-tests Make enable filtering of bnfc-system-tests, fix failing system tests May 3, 2022
@hangingman

Copy link
Copy Markdown
Owner Author

A test case "Parameterized tests:Haskell/GADT:Haskell/GADT:289_LexerKeywords" is not passed. But all other test cases are passed. I will merge it into working branch.

@hangingman
hangingman merged commit fd2531c into issues/293_enhance_new_cpp_poc_2 May 3, 2022
@hangingman
hangingman deleted the issues/293_fix_failed_tests branch May 3, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant