3 TEMP=`getopt -o sr --long serial,rerun -n 'execute.sh' -- "$@"`
5 if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
7 # Note the quotes around `$TEMP': they are essential!
14 -s|--serial) opt_parallel=0 ; shift ;;
15 -r|--rerun) opt_rerun="-r" ; shift ;;
17 *) echo "Internal error $1!" ; exit 1 ;;
23 scripts/tctestsgen.sh $1 `pwd` desktop $2
24 testkit-lite -f `pwd`/tests.xml -o tct-${1}-core-tests.xml -A --comm localhost
25 scripts/add_style.pl $1
28 # Clean up old test results
29 rm -f tct*core-tests.xml
31 # Clean up old coverage data
32 if [ -d ../build/tizen ] ; then
33 rm -f ../build/tizen/dali-core/.libs/*.gcda
36 find build \( -name "*.gcda" \) -exec rm '{}' \;
38 if [ $opt_parallel = 1 ] ; then
41 if [ -f "build/src/$1/tct-$1-core" ] ; then
42 build/src/$1/tct-$1-core -p $opt_rerun
45 for mod in `ls -1 src/ | grep -v CMakeList `
47 if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
49 build/src/$mod/tct-$mod-core -p $opt_rerun
58 for mod in `ls -1 src/ | grep -v CMakeList `
60 if [ $mod != 'common' ] && [ $mod != 'manual' ]; then