export AUTOTEST_SDB_MODE=${2:-'-d'}
export AUTOTEST_PROFILE=${3:-'mobile'}
+case $AUTOTEST_PATH in
+ /*) AUTOTEST_PATH=$AUTOTEST_PATH;;
+ *) AUTOTEST_PATH=$PWD/$AUTOTEST_PATH;;
+esac
+
export PROCESS_CMDS_SCRIPT="$AUTOTEST_PATH/process_cmds.sh"
export WORKSPACE_LINK_NAME="workspace"
ln -s $AUTOTEST_CURRENT_RESULT_DIR $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME
sdb $AUTOTEST_SDB_MODE root on
- sdb $AUTOTEST_SDB_MODE shell "echo 'isf-demo-efl /autotest 2>/dev/null' > $AUTOTEST_TARGET_PATH"
+ sdb $AUTOTEST_SDB_MODE shell "echo 'export USER=root' > $AUTOTEST_TARGET_PATH"
+ sdb $AUTOTEST_SDB_MODE shell "echo 'for i in /etc/profile.d/* ;do source \$i;done' >> $AUTOTEST_TARGET_PATH"
+ sdb $AUTOTEST_SDB_MODE shell "echo 'isf-demo-efl /autotest 2>/dev/null' >> $AUTOTEST_TARGET_PATH"
+ sdb $AUTOTEST_SDB_MODE shell "chmod a+x $AUTOTEST_TARGET_PATH"
}
function cleanup() {
echo "[CMD] : $CMD_LINE"
$PROCESS_CMDS_SCRIPT $CMD_LINE
fi
-done < <(sdb $AUTOTEST_SDB_MODE shell "su - owner $AUTOTEST_TARGET_PATH" 2>&1)
+done < <(sdb $AUTOTEST_SDB_MODE shell "$AUTOTEST_TARGET_PATH" 2>&1)
cleanup
ISE_PID=`sdb $AUTOTEST_SDB_MODE shell ps -ef | grep ise | awk '{print $2}'`
ISE_XID=`sdb $AUTOTEST_SDB_MODE shell 'enlightenment_info -topvwins' | grep $ISE_PID | grep $ISE_WIN_NAME | awk '{print $2}' | tr -d '\r'`
-sdb $AUTOTEST_SDB_MODE shell 'rm -rf topvwins*'
-sdb $AUTOTEST_SDB_MODE shell 'enlightenment_info -dump_topvwins > /dev/null' > /dev/null
-DUMP_DIR=`sdb $AUTOTEST_SDB_MODE shell 'find / -maxdepth 1 -type d -name "topvwins*"' | tr -d '\r'`
-sdb $AUTOTEST_SDB_MODE pull $DUMP_DIR/$ISE_XID.png $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME/$NAME.dumpwin.png > /dev/null
-sdb $AUTOTEST_SDB_MODE shell 'rm -rf topvwins*'
+sdb $AUTOTEST_SDB_MODE shell 'rm -rf /tmp/topvwins*'
+sdb $AUTOTEST_SDB_MODE shell 'cd /tmp;enlightenment_info -dump topvwins > /dev/null' > /dev/null
+DUMP_DIR=`sdb $AUTOTEST_SDB_MODE shell 'find /tmp/ -maxdepth 1 -type d -name "topvwins*"' | tr -d '\r'`
+sdb $AUTOTEST_SDB_MODE pull $DUMP_DIR/"$ISE_XID"_0.png $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME/$NAME.png > /dev/null
+sdb $AUTOTEST_SDB_MODE pull $DUMP_DIR/"$ISE_XID"_90.png $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME/$NAME.png > /dev/null
+sdb $AUTOTEST_SDB_MODE pull $DUMP_DIR/"$ISE_XID"_180.png $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME/$NAME.png > /dev/null
+sdb $AUTOTEST_SDB_MODE pull $DUMP_DIR/"$ISE_XID"_270.png $AUTOTEST_CURRENT_RESULT_DIR/$WORKSPACE_LINK_NAME/$NAME.png > /dev/null
+sdb $AUTOTEST_SDB_MODE shell 'rm -rf /tmp/topvwins*'
elm_init (argc, argv);
- app_create (&ad);
-
for (int loop = 0;loop < argc;loop++) {
if (strcmp(argv[loop], AUTOTEST_RUN_PARAMETER) == 0) {
_autotest_enabled = true;
}
}
+ app_create (&ad);
+
elm_run ();
app_exit ((void *)&ad);