}
continue;
}
- ICO_DBG("ico_dic_js_read: Read(type=%d, number=%d, value=%d)",
+ ICO_PRF("SWITCH_EVENT Read(type=%d, number=%d, value=%d)",
type, number, value);
if (mEventLog) {
if (iMng->code[icode].keycode < 0) {
/* start program if pressed */
if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
- ICO_DBG("ico_dic_js_read: start script(%s)", iMng->code[icode].appid);
+ ICO_PRF("SWITCH_EVENT start script(%s)", iMng->code[icode].appid);
if (system(iMng->code[icode].appid) == -1) {
ICO_DBG("ico_dic_js_read: script(%s) ret -1",
iMng->code[icode].appid);
if (state == WL_KEYBOARD_KEY_STATE_PRESSED) state = 1;
else state = 0;
- ICO_DBG("ico_dic_js_read: send event to %s(%d.%d)",
+ ICO_PRF("SWITCH_EVENT send event to %s(%d.%d)",
iMng->code[icode].appid, iMng->code[icode].keycode, state);
ico_input_mgr_control_send_input_event(gIco_Dic_Mng.Wayland_InputCtl,
iMng->code[icode].appid, 0,
}
else {
/* general switch event, send to multi input manager */
- ICO_DBG("ico_dic_js_read: send general input event(%s.%d.%d.%d)",
+ ICO_PRF("SWITCH_EVENT send general input event(%s.%d.%d.%d)",
gIco_Dic_JS.device, iMng->input, code, state);
ico_input_mgr_device_input_event(gIco_Dic_Mng.Wayland_InputMgr, events[ii].time,
gIco_Dic_JS.device, iMng->input, code, state);
sleep 0.5
# 4 Start Weston
-/usr/bin/weston --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
+/usr/bin/weston --tty=1 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
sleep 180
# 5 End of Test
sleep 1
/usr/bin/killall ico_dic-gtforce
-sleep 0.2
+sleep 0.4
+/usr/bin/killall -9 ico_dic-gtforce > /dev/nul 2>&1
+sleep 0.1
/usr/bin/killall weston
sleep 1
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi
-/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight"
+/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight" | /bin/grep -v "disconnect"
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi
sleep 0.5
# 4 Start Weston
-/usr/bin/weston --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
+/usr/bin/weston --tty=1 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
sleep 180
# 5 End of Test
sleep 1
/usr/bin/killall ico_dic-gtforce
-sleep 0.2
+sleep 0.4
+/usr/bin/killall -9 ico_dic-gtforce > /dev/nul 2>&1
+sleep 0.1
/usr/bin/killall weston
sleep 1
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi
-/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight"
+/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight" | /bin/grep -v "disconnect"
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi