blob: 2654ec18b49c196862dcd568eb1352ca8119c7f4 [file] [log] [blame]
#!/system/bin/sh
rc=0
insmod /system/modules/juice_input_test_module.ko
rc=$?
if [ $rc -ne 0 ]; then
echo "Insmod juice input kernel module failed!"
fi
N=`dmesg |grep Juice|awk -F '' '{print $NF}'`
echo "Evdev IOCTL CMD TEST START"
juice_evtest -p /dev/input/event$N
rc=$?
if [ $rc -ne 0 ]; then
echo "Evdev IOCTL CMD TEST FAIL!"
else
echo "EVDEV IOCTL CMD TEST FINISH"
fi
rmmod juice_input_test_module
rc=$?
if [ $rc -ne 0 ]; then
echo "Remove juice input kernel module failed!"
fi