generate_and_run_more_tests.sh: Refactoring

This commit is contained in:
Daniel Marjamäki 2015-07-22 13:44:08 +02:00
parent ab1113fb16
commit 1df46140c1
2 changed files with 8 additions and 10 deletions

View File

@ -6,16 +6,8 @@
set -e
echo testmemleak
rm -rf test1
python tools/extracttests.py --code=test1 test/testmemleak.cpp
cd test1
../tools/run_more_tests.sh
cd ..
tools/run_more_tests.sh test/testmemleak.cpp
echo testleakautovar
rm -rf test1
python tools/extracttests.py --code=test1 test/testleakautovar.cpp
cd test1
../tools/run_more_tests.sh
cd ..
tools/run_more_tests.sh test/testleakautovar.cpp

View File

@ -3,6 +3,10 @@
set -e
python tools/extracttests.py --code=test1 $1
cd test1
../cppcheck -q . 2> 1.txt
@ -89,4 +93,6 @@ sed -ri 's/([(&][ ]*)(\-?[0-9]+)[ ]*\!=[ ]*([a-z]+)([ ]*[&)])/\1\3!=\2\4/' *.cp
../cppcheck -q . 2> 2.txt && diff 1.txt 2.txt
cd ..
rm -rf test1