function execute
{
- scripts/tctestsgen.sh $1 `pwd` desktop
+ scripts/tctestsgen.sh $1 `pwd` desktop $2
testkit-lite -f `pwd`/tests.xml -o tct-${1}-core-tests.xml -A --comm localhost
scripts/add_style.pl $1
}
# Clean up old test results
rm -f tct*core-tests.xml
+# Clean up old coverage data
+if [ -d ../build/tizen ] ; then
+ rm -f ../build/tizen/dali-core/.libs/*.gcda
+fi
+
+find build -name "*.gcda" -exec rm '{}' \;
+
if [ -n "$1" ] ; then
echo EXECUTING ONLY $1
- execute $1
+ execute $*
else
for mod in `ls -1 src/ | grep -v CMakeList `
do
if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
echo EXECUTING $mod
- execute $mod
+ execute $mod $*
fi
done
fi