From e65ad1e34b4c6056b1c158fe632fc0a7ce42ce0f Mon Sep 17 00:00:00 2001 From: Felix Gerking <felix.gerking@garz-fricke.com> Date: Thu, 14 Dec 2017 16:46:32 +0000 Subject: [PATCH] Testscripts for EMV-Testsuite: Added/customized scripts for the platforms Santaro,Satoka,Santino,Satino-LT, refs #29020 * Santaro ** Modified umount command in preparations: now no more errors occur when USB-Sticks/SD-Cards are mounted with different partitions ** Modified sleep command: time changed from 1 to 0.9 seconds, now it is consistent with the real-time measurement * Santoka ** Commented out WiFi and Bluetooth commands: these are not tested by default ** Modified sleep command: same reason as above * Santino ** Added EMV-Testscript: necessary to run the EMV-Testsuite * Santion-LT ** Added EMV-Testscript: necessary to run the EMV-Testsuite --- runtest/santaro | 13 ++++++++----- runtest/santino | 45 +++++++++++++++++++++++++++++++++++++++++++ runtest/santino-lt | 48 ++++++++++++++++++++++++++++++++++++++++++++++ runtest/santoka | 18 ++++++++--------- 4 files changed, 110 insertions(+), 14 deletions(-) create mode 100755 runtest/santino create mode 100755 runtest/santino-lt diff --git a/runtest/santaro b/runtest/santaro index cf4d9a1..a34ec58 100644 --- a/runtest/santaro +++ b/runtest/santaro @@ -17,10 +17,13 @@ # PREPARATION # #-----------------------------------------------------------------------------# Testimage_display FRAMEBUFFER=/dev/fb0 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null -Testimage_HDMI FRAMEBUFFER=/dev/fb2 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null -MMC_umount if grep /dev/mmcblk1p1 /proc/mounts; then umount /dev/mmcblk1p1; fi -USB_stick_1_umount if grep /dev/sda /proc/mounts; then umount /dev/sda; fi -USB_stick_2_umount if grep /dev/sdb /proc/mounts; then umount /dev/sdb; fi +#Testimage_HDMI FRAMEBUFFER=/dev/fb2 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null +Testimage_HDMI hdmiconfig unblank; hdmiconfig set 1920 1080 60 16; sleep 3; FRAMEBUFFER=/dev/fb2 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null +MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done +#MMC_umount if grep /dev/mmcblk1p1 /proc/mounts; then umount /dev/mmcblk1p1; fi +USB_stick_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}' ) ;do umount $i; done +#USB_stick_1_umount if grep /dev/sda1 /proc/mounts; then umount /dev/sda1; fi +#USB_stick_2_umount if grep /dev/sdb1 /proc/mounts; then umount /dev/sdb1; fi Touchtest_remove_socket rm -f /touch_tst_socket Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0 @@ -42,7 +45,7 @@ Serial0 serial -d /dev/ttymxc0 -q -b 115200 -fn -c 5 -s 1024 Serial1 serial -d /dev/ttymxc1 -q -b 115200 -fn -c 5 -s 1024 -o 300 RS4854 serial -d /dev/ttymxc2 -q -b 115200 -fn -c 5 -s 1024 -o 300 Touch touchmon -z -r /touch_tst_socket -Wait sleep 1 +Wait sleep 0.9 #-----------------------------------------------------------------------------# # CLEANUP # diff --git a/runtest/santino b/runtest/santino new file mode 100755 index 0000000..4e7cf41 --- /dev/null +++ b/runtest/santino @@ -0,0 +1,45 @@ +#-----------------------------------------------------------------------------# +# DESCRIPTION # +# ----------- # +# This is a configuration file for the Garz & Fricke Built-In-Test Framework, # +# which is implemented using tests from the LTP. Thus, the configuration file # +# looks very similar to LTP configuration files and can actually be used by # +# LTP. However, it should not, since there are slight differences: # +# This file is divided into three sections: PREPARATION, TESTCASES and # +# CLEANUP. Each section contains lines beginning with a name and ending with # +# a command line. The command lines of the PREPARATION section are executed # +# once at the start of the execution. Then, the command lines of the TEST- # +# CASES section is looped for the given number of iterations. At the end, the # +# commands of the CLEANUP section are run once. # +#-----------------------------------------------------------------------------# + +#-----------------------------------------------------------------------------# +# PREPARATION # +#-----------------------------------------------------------------------------# +Testimage_display FRAMEBUFFER=/dev/fb0 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null +MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done +USB_stick_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}' ) ;do umount $i; done +Touchtest_remove_socket rm -f /touch_tst_socket +Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0 + +#-----------------------------------------------------------------------------# +# TESTCASES # +#-----------------------------------------------------------------------------# +Temp lm73temp -n lm75 +MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1 +USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1 +USB_stick_2_write_25kB bwrite -q -n /dev/sdb -b 25000 -i 1 +#I2C i2c -q -d /dev/i2c-0 -s 0x68 -a 0x0a -b 0x0b -w 100 -i 150 +Network iptest -q -g 192.168.1.100 -n 1 -w 50 +#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_m.wav +CAN can -n 2 -o 500 +Serial0 serial -d /dev/ttymxc0 -q -b 115200 -fn -c 5 -s 1024 -o 300 +Serial1 serial -d /dev/ttymxc1 -q -b 115200 -fn -c 5 -s 1024 -o 300 +RS4854 serial -d /dev/ttymxc2 -q -b 115200 -fn -c 5 -s 1024 -o 300 +Touch touchmon -z -r /touch_tst_socket +Wait sleep 0.9 + +#-----------------------------------------------------------------------------# +# CLEANUP # +#-----------------------------------------------------------------------------# +Touchtest_stop touchmon -t -r /touch_tst_socket -q diff --git a/runtest/santino-lt b/runtest/santino-lt new file mode 100755 index 0000000..3f93969 --- /dev/null +++ b/runtest/santino-lt @@ -0,0 +1,48 @@ +#-----------------------------------------------------------------------------# +# DESCRIPTION # +# ----------- # +# This is a configuration file for the Garz & Fricke Built-In-Test Framework, # +# which is implemented using tests from the LTP. Thus, the configuration file # +# looks very similar to LTP configuration files and can actually be used by # +# LTP. However, it should not, since there are slight differences: # +# This file is divided into three sections: PREPARATION, TESTCASES and # +# CLEANUP. Each section contains lines beginning with a name and ending with # +# a command line. The command lines of the PREPARATION section are executed # +# once at the start of the execution. Then, the command lines of the TEST- # +# CASES section is looped for the given number of iterations. At the end, the # +# commands of the CLEANUP section are run once. # +#-----------------------------------------------------------------------------# + +#-----------------------------------------------------------------------------# +# PREPARATION # +#-----------------------------------------------------------------------------# +Testimage_display FRAMEBUFFER=/dev/fb0 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null +MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done +USB_stick_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}' ) ;do umount $i; done +Touchtest_remove_socket rm -f /touch_tst_socket +Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0 +RS485pingpong_start rs485pingpong -k -d /dev/ttymxc0 -s 115200 -x 100 & + +#-----------------------------------------------------------------------------# +# TESTCASES # +#-----------------------------------------------------------------------------# +Temp lm73temp -n lm75 +#Flash_write_25kB fwrite -q -n /file25k -b 25000 -i 1 +MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1 +USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1 +USB_stick_2_write_25kB bwrite -q -n /dev/sdb -b 25000 -i 1 +#I2C i2c -q -d /dev/i2c-0 -s 0x68 -a 0x0a -b 0x0b -w 100 -i 150 +Network iptest -q -g 192.168.1.100 -n 1 -w 50 +#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_m.wav +CAN can -n 2 -o 500 +#Serial0 serial -d /dev/ttymxc0 -q -b 115200 -fn -c 5 -s 1024 -o 300 +#RS4854 serial -d /dev/ttymxc2 -q -b 115200 -fn -c 5 -s 1024 -o 300 +Serial0&RS485 rs485pingpong -r 5 -s 115200 -x 100 -o 1 +Touch touchmon -z -r /touch_tst_socket +Wait sleep 0.9 + +#-----------------------------------------------------------------------------# +# CLEANUP # +#-----------------------------------------------------------------------------# +Touchtest_stop touchmon -t -r /touch_tst_socket -q +RS485pingpong_stop killall rs485pingpong diff --git a/runtest/santoka b/runtest/santoka index e5163b2..55d62c6 100644 --- a/runtest/santoka +++ b/runtest/santoka @@ -19,15 +19,15 @@ Testimage_display FRAMEBUFFER=/dev/fb0 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null #Testimage_display /usr/share/qt5/examples/touch/fingerpaint/fingerpaint & Testimage_HDMI hdmiconfig unblank; hdmiconfig set 1920 1080 60 16; sleep 3; FRAMEBUFFER=/dev/fb2 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null -MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do echo $i; done +MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done USB_stick_1_umount for i in `mount | grep sda | awk '{print $1}'`; do umount $i; done USB_stick_2_umount for i in `mount | grep sdb | awk '{print $1}'`; do umount $i; done USB_stick_3_umount for i in `mount | grep sdc | awk '{print $1}'`; do umount $i; done Touchtest_remove_socket rm -f /touch_tst_socket Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0 -Network_eth0 ifconfig eth0 add 192.168.1.1 -Network_eth1 ifconfig eth1 add 192.168.2.1 -Network_wlan0 iwconfig wlan0 txpower 18 && ifconfig wlan0 add 192.168.3.1 +#Network_eth0 ifconfig eth0 add 192.168.1.1 +#Network_eth1 ifconfig eth1 add 192.168.2.1 +#Network_wlan0 iwconfig wlan0 txpower 18 && ifconfig wlan0 add 192.168.3.1 #Test_BT_server l2test -I 32768 -r -R @@ -45,19 +45,19 @@ USB_stick_3_write_25kB bwrite -q -n /dev/sdc -b 25000 -i 1 #I2C i2c -q -d /dev/i2c-0 -s 0x68 -a 0x0a -b 0x0b -w 100 -i 150 Network_eth0 iptest -q -g 192.168.1.100 -n 1 -w 50 Network_eth1 iptest -q -g 192.168.2.100 -n 1 -w 50 -Network_wlan0 iptest -q -g 192.168.3.100 -n 1 -w 1000 -Test_BT_client l2test -O 32768 -s 00:06:C6:4F:95:D4 -R -N 2 -#Test_BT_ping l2ping -c 2 -s 640 -t 2 -v 00:22:43:E2:F4:25 >/tmp/l2ping-log && echo "l2ping 1 TPASS : " `grep loss /tmp/l2ping-log` +#Network_wlan0 iptest -q -g 192.168.3.100 -n 1 -w 1000 +#Test_BT_client l2test -O 32768 -s 00:06:C6:4F:95:D4 -R -N 2 +#Test_BT_ping l2ping -c 2 -s 640 -t 2 -v 00:22:43:E2:F4:25 >/tmp/l2ping-log && echo "l2ping 1 TPASS : " `grep loss /tmp/l2ping-log` #Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_m.wav CAN can -n 2 -o 500 Serial0 serial -d /dev/ttymxc0 -q -b 115200 -fn -c 5 -s 1024 -o 300 Serial1 serial -d /dev/ttymxc1 -q -b 115200 -fn -c 5 -s 1024 -o 300 RS4854 serial -d /dev/ttymxc2 -q -b 115200 -fn -c 5 -s 1024 -o 300 Touch touchmon -z -r /touch_tst_socket -Wait sleep 1 +Wait sleep 0.9 #-----------------------------------------------------------------------------# # CLEANUP # #-----------------------------------------------------------------------------# Touchtest_stop touchmon -t -r /touch_tst_socket -q -Testimage_display_stop killall fingerpaint +Testimage_display_stop killall fingerpaint \ No newline at end of file -- GitLab