I have eclipse with cdt and a project which contains files generated by flex and bison, the project runs perfectly but I couldn't run it as a unit test, here the things I tried:
CUTE
As the answer on this question says, I couldn't find a way to test a project that already exists, so this didn't work.
CppUnit is old as the answer said(didn't try it though but I don't want an old thing).
CDT unit testing
As this question states, unit testing is now a part of cdt, I installed it and installed googletest and followed the instructions but when I run it, it says : Unknown error during parsing Google Test module output : Unexpected test module output
.
This is another question getting the same message but it doesn't have an answer(except in comments which is the same answer I followed when setting up cdt unit testing).
and after I ran this test, I got compiler errors in yacc.cpp and lex.yy.cc which I didn't get when running the project in normal.
Goal
I'm a university student doing a project with four collegues, we're building a compiler to a language specified by the professors.
I have seen a question on "bison flex unit testing", this is it : Unit test of flex bison scanner parse, how to drive the test case
but the poster of the question is using C, we're restricted to use C++ in both scanner and parser, so the question can't really help me.
PS
because running the project without unit testing worked well, I thought the error isn't with my yacc.y or lex.l, that's why I didn't post them, if they are needed I'll edit my question.
One last thing, I'm running linux mint 17.1 64bit.