#DESCRIPTION: PLANET EMV Tests
#---------------------------------------
#The following lines preceeded by "#PREPARATION:" are test preparations. These are not part of the LTP.
#They will be evaluated by the BIT Framework (runtest/scripts/bit) and executed before the actual test looping.
#LTP itself will ignore these lines because they are preceeded by the comment symbol "#". The preparation lines
#can be commented by adding a "#" directly in front of the command. All this applies accordingly to the
#lines preceeded by "#CLEANUP:". They will be executed after the test looping.
#---------------------------------------
#PREPARATION: mmc -q -f -t vfat
#PREPARATION: mstick -q -n 3
#PREPARATION: /etc/init.d/camera start
#PREPARATION: flashled -d 15 -m torch_on
#---------------------------------------
#PRREPARATION: echo 5 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/up_hys
#PRREPARATION: echo 5 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/down_hys
#PRREPARATION: echo 3 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_sample
#PRREPARATION: echo 2 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_hold
#PRREPARATION: echo 1 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_sustain
#PRREPARATION: echo 2 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_decay
#PRREPARATION: echo 2 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_distance
#PRREPARATION: echo 4096 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_x
#PRREPARATION: echo 70 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_x
#PRREPARATION: echo 4096 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_y
#PRREPARATION: echo 90 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_y
#PRREPARATION: echo 48 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_cal_diff
#PRREPARATION: echo 15 >  /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/check_max_val
#---------------------------------------
#PREPARATION: rm -f /touch_tst_socket
#PREPARATION: rm -f /cap_btn_tst_socket
#PREPARATION: touchmon -d -i /dev/input/event1 -s /touch_tst_socket -p 0
#PREPARATION: touchmon -d -i /dev/input/event0 -s /cap_btn_tst_socket
#---------------------------------------
Flash_write_1kB			time fwrite -n /file25k -b 1024 -i 1 2>>./flash_time.log
MMC_write_1kB				time fwrite -q -n /mnt/mmc/testfile -b 1024 -i 1 2>>./mmc_time.log
USB_stick_1_write_1kB		time fwrite -n /mnt/mstick1/testfile -b 1024 -i 1 2>>./stick1_time.log
USB_stick_2_write_1kB		time fwrite -n /mnt/mstick2/testfile -b 1024 -i 1 2>>./stick2_time.log
USB_stick_3_write_1kB		time fwrite -n /mnt/mstick3/testfile -b 1024 -i 1 2>>./stick3_time.log
I2C							i2c -q -d /dev/i2c-0 -i 1
Serial1						serial -d /dev/ttymxc0 -q -b 115200 -fn -c 1 -s 32 -o 300
Serial2						serial -d /dev/ttymxc1 -q -b 115200 -fn -c 1 -s 32 -o 300
Serial3						serial -d /dev/ttymxc2 -q -b 115200 -fn -c 1 -s 32 -o 300
Serial4						serial -d /dev/ttymxc3 -q -b 115200 -fn -c 1 -s 32 -o 300
Network						iptest -q -g 192.168.1.100 -n 1 -w 50
#Network						iptest -q -g 172.20.5.215 -n 1 -w 50
Touchtest_result			touchmon -z -r /touch_tst_socket
CapButtonTest_result		touchmon -z -r /cap_btn_tst_socket
#---------------------------------------
#CLEANUP: /etc/init.d/camera stop
#CLEANUP: flashled -d 15 -m torch_off
#CLEANUP: touchmon -t -r /touch_tst_socket -q
#CLEANUP: touchmon -t -r /cap_btn_tst_socket -q
#---------------------------------------
