Travis test
diff --git a/SVIncCompil/README b/SVIncCompil/README index cda3f9d..2b28552 100644 --- a/SVIncCompil/README +++ b/SVIncCompil/README
@@ -13,7 +13,9 @@ 2) The following tools need to be installed on your machine: - Java jdk (For Antlr generation) sudo apt-get install default-jdk -- g++-7 +- Compiler: gcc with C11 support + g++-7 +- Python3.6 - uuid - uuid-dev - cmake @@ -25,7 +27,6 @@ - Java "ant" build system (For G4 directory) - IDE: >= netbeans8.2 - ddd for Core dump debug -- Compiler: gcc with C14 support - valgrind --tool=memcheck to check for memory corruptions - tcmalloc @@ -43,15 +44,6 @@ dist/Release/GNU-Linux/surelog -help dist/Release/GNU-Linux/surelog -writepp -parse ../TESTCASES/UnitTest/top.v - - -- GOOGLE GPERFTOOLS - -sudo apt-get install google-perftools graphviz -sudo apt-get install libgoogle-perftools-dev -sudo apt-get install gperftools - - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Modus operanti: @@ -69,22 +61,21 @@ Create tests in Netbeans under the Testcase directory, Copy an exisitng launcher in the Project Manager Launcher menu, adapt to the test -The following regression script: +The following regression script will run all tests: cd Testcases ./regression.tcl -will run all tests. -See script help in the comments: -# regression.tcl tests=<testname> (Tests matching regular expression) -# test=<testname> (Just that test) -# debug=<none, valgrind, ddd> -# build=<debug, release, notcmalloc> -# commit="commit text" - -Do not use git commit directly, let the regression script do the commit iff all regressions pass. -To store your git credentials on disk so the script can do the push: -git config credential.helper store -git push +Regression options: + regression.tcl help + regression.tcl tests=<testname> (Tests matching regular expression) + test=<testname> (Just that test) + debug=<none, valgrind, ddd> + build=<debug, advanced, release, notcmalloc, undertow> + commit=\"commit text\" + mt=<nbThreads>" + large (large tests too) + show_diff (Shows text diff) + regression.tcl update (Updates the diffs) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -103,12 +94,20 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PROFILING +1) + env CPUPROFILE=./prof env LD_PRELOAD="/usr/lib/libprofiler.so" ../../dist/Debug/GNU-Linux/surelog <test> google-pprof --callgrind ../../dist/Debug/GNU-Linux/surelog prof >> call kcachegrind call +2) GOOGLE GPERFTOOLS + +sudo apt-get install google-perftools graphviz +sudo apt-get install libgoogle-perftools-dev +sudo apt-get install gperftools + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ COMPLETE BUILD
diff --git a/SVIncCompil/buildflatbuffer.sh b/SVIncCompil/buildflatbuffer.sh index 4028a01..bf90d7a 100755 --- a/SVIncCompil/buildflatbuffer.sh +++ b/SVIncCompil/buildflatbuffer.sh
@@ -5,7 +5,7 @@ ######################################################################### # Build flatbuffers ######################################################################### -echo "Making Flatbuffers" +echo "Building Flatbuffers" export CC=`which gcc-7` export CXX=`which g++-7` @@ -16,5 +16,5 @@ make -j 4 &> flatbuffers_compile.log ./flattests &> flatbuffers_test.log -echo "Done Making Flatbuffers" +echo "Done Building Flatbuffers"
diff --git a/SVIncCompil/nbproject/Makefile-Release.mk b/SVIncCompil/nbproject/Makefile-Release.mk index 0844f2a..db1c933 100644 --- a/SVIncCompil/nbproject/Makefile-Release.mk +++ b/SVIncCompil/nbproject/Makefile-Release.mk
@@ -670,7 +670,7 @@ ${OBJECTDIR}/parser/SV3_1aParser.o: parser/SV3_1aParser.cpp ${MKDIR} -p ${OBJECTDIR}/parser ${RM} "$@.d" - $(COMPILE.cc) -I../antlr4/antlr4-4.7.2/runtime/Cpp/runtime/src -I../flatbuffers/include -I/usr/include/python3.6m/ -std=c++11 -Wunused-but-set-variable -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/parser/SV3_1aParser.o parser/SV3_1aParser.cpp + $(COMPILE.cc) -w -I../antlr4/antlr4-4.7.2/runtime/Cpp/runtime/src -I../flatbuffers/include -I/usr/include/python3.6m/ -std=c++11 -Wunused-but-set-variable -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/parser/SV3_1aParser.o parser/SV3_1aParser.cpp ${OBJECTDIR}/parser/SV3_1aParserBaseListener.o: parser/SV3_1aParserBaseListener.cpp ${MKDIR} -p ${OBJECTDIR}/parser @@ -690,7 +690,7 @@ ${OBJECTDIR}/parser/SV3_1aPpParser.o: parser/SV3_1aPpParser.cpp ${MKDIR} -p ${OBJECTDIR}/parser ${RM} "$@.d" - $(COMPILE.cc) -Wall -I../antlr4/antlr4-4.7.2/runtime/Cpp/runtime/src -I../flatbuffers/include -I/usr/include/python3.6m/ -std=c++11 -Wunused-but-set-variable -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/parser/SV3_1aPpParser.o parser/SV3_1aPpParser.cpp + $(COMPILE.cc) -w -I../antlr4/antlr4-4.7.2/runtime/Cpp/runtime/src -I../flatbuffers/include -I/usr/include/python3.6m/ -std=c++11 -Wunused-but-set-variable -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/parser/SV3_1aPpParser.o parser/SV3_1aPpParser.cpp ${OBJECTDIR}/parser/SV3_1aPpParserBaseListener.o: parser/SV3_1aPpParserBaseListener.cpp ${MKDIR} -p ${OBJECTDIR}/parser
diff --git a/SVIncCompil/nbproject/configurations.xml b/SVIncCompil/nbproject/configurations.xml index a57ebbd..b0b55d1 100644 --- a/SVIncCompil/nbproject/configurations.xml +++ b/SVIncCompil/nbproject/configurations.xml
@@ -1540,7 +1540,7 @@ </item> <item path="parser/SV3_1aParser.cpp" ex="false" tool="1" flavor2="0"> <ccTool> - <warningLevel>1</warningLevel> + <warningLevel>0</warningLevel> </ccTool> </item> <item path="parser/SV3_1aParser.h" ex="false" tool="3" flavor2="0"> @@ -1565,6 +1565,9 @@ <item path="parser/SV3_1aPpLexer.tokens" ex="false" tool="3" flavor2="0"> </item> <item path="parser/SV3_1aPpParser.cpp" ex="false" tool="1" flavor2="0"> + <ccTool> + <warningLevel>0</warningLevel> + </ccTool> </item> <item path="parser/SV3_1aPpParser.h" ex="false" tool="3" flavor2="0"> </item>