Add test scripts for 'Extra tests'

This commit is contained in:
Daniel Marjamäki 2015-07-22 13:07:17 +02:00
parent bb95bc9fc5
commit 4039e231a5
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/bash
# Run like:
# cd ~/cppcheck
# tools/generate_and_run_more_tests.sh
set -e
echo testmemleak
rm -rf test1
python tools/extracttests.py --code=test1 test/testmemleak.cpp
cd test1
../tools/run_more_tests.sh
cd ..
echo testleakautovar
rm -rf test1
python tools/extracttests.py --code=test1 test/testleakautovar.cpp
cd test1
../tools/run_more_tests.sh
cd ..