Allow overshoot indicators to be implemented outside of ItemView
[platform/core/uifw/dali-toolkit.git] / automated-tests / debug_target.sh
1 #!/bin/sh
2
3 TEMP=`getopt -o ds: --long desktop,scenario: \
4      -n 'build_out.sh' -- "$@"`
5
6 if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
7
8 # Note the quotes around `$TEMP': they are essential!
9 eval set -- "$TEMP"
10
11 scenario=all
12 env=./_export_env.sh
13
14 while true ; do
15     case "$1" in
16         -d|--desktop)   env=./_export_desktop.sh ; shift ;;
17         -s|--scenario)  scenario="$2" ; shift 2 ;;
18         --) shift ; break ;;
19         *) echo "Internal error!" ; exit 1 ;;
20         esac
21 done
22
23
24 # Source correct environment
25 . $env
26
27 echo PATH=$PATH
28 echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
29 echo TET_ROOT=$TET_ROOT
30 echo TET_SUITE_ROOT=$TET_SUITE_ROOT
31 echo ARCH=$ARCH
32
33 RESULT_DIR=results-$ARCH
34 HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html
35 JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal
36
37 mkdir -p $RESULT_DIR
38
39 tmp_script=/tmp/tetexec$$
40
41 cat > $tmp_script <<!EOF
42 LD_LIBRARY_PATH=$TET_ROOT/lib/tet3:$LD_LIBRARY_PATH
43 export LD_LIBRARY_PATH
44 echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
45 gdb \$*
46 !EOF
47
48
49 chmod 755 $tmp_script
50 tcc -v TET_XTERM=/usr/bin/rxvt-xpm -v TET_XTERM_DISPLAY=192.168.129.2:0 -v TET_EXEC_TOOL=$TET_ROOT/bin/tet_start -v TET_EXEC_FILE=$tmp_script -e -j - ./ $scenario
51
52 rm $tmp_script