--- /dev/null
+#!/bin/bash
+
+PREFIX=qe9fh483fb4i3fb8we3_universal_switch
+DLOG=/tmp/${PREFIX}_dlog.txt
+TEST_FILE=/tmp/${PREFIX}_test_file
+OUTPUT=/tmp/${PREFIX}_output.txt
+
+PERMISSIONS=User::Pkg::org.tizen.universal-switch::RO
+
+dlogutil -c
+mkfifo -m 0666 $DLOG
+(
+ dlogutil '*' > $DLOG 2> /dev/null
+)&
+chsmack -a $PERMISSIONS $TEST_FILE
+chsmack -a $PERMISSIONS $DLOG
+JOBS=$(jobs -p)
+echo "JOB is $JOBS"
+
+rm -f $OUTPUT
+app_launcher -t org.tizen.universal-switch
+STATUS=$(app_launcher -s org.tizen.universal-switch TESTS_PATH $TEST_FILE TESTS_OUTPUT $OUTPUT)
+STATUS2=${STATUS#*successfully launched pid = }
+PID=${STATUS2% with debug*}
+tail --pid=$PID -f /dev/null
+kill -9 $JOBS
+
+rm -f $DLOG
+cat $OUTPUT
--- /dev/null
+#!/bin/bash
+
+P=$(readlink -f "$1")
+SCRIPT=$(readlink -f "$0")
+cd $(dirname "$SCRIPT")
+cd ../..
+
+./project-tool -j
+sdb root on
+sdb push $P /tmp/qe9fh483fb4i3fb8we3_universal_switch_test_file
+sdb push src/batch/batch_exec.sh /tmp/qe9fh483fb4i3fb8we3_universal_switch_test_exec
+sdb shell chsmack -a _ /tmp/qe9fh483fb4i3fb8we3_universal_switch_test_exec
+sdb shell "cd /tmp; /bin/bash /tmp/qe9fh483fb4i3fb8we3_universal_switch_test_exec; echo done"
+