Skip to content
Snippets Groups Projects
Commit a8fc45e1 authored by Clemens Terasa's avatar Clemens Terasa
Browse files

Add SANTOKA emission and immunity test scripts

parent 6373eaad
No related branches found
No related tags found
1 merge request!23Add SANTOKA emission and immunity test scripts
#-----------------------------------------------------------------------------#
# 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 /usr/bin/fingerpaint &
Testimage_display bball -f -l 0.1 &
#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
#Testimage_HDMI (while : ; do gst-launch-1.0 -v filesrc location=/opt/ltp/images/colorbar-and-bouncing-ball-1920x1080.mp4 typefind=true ! qtdemux ! vpudec frame-plus=6 output-format=0 ! queue ! imxv4l2sink sync=false device=/dev/video18; done) &
#Testimage_HDMI hdmi-test.sh
#Testimage_HDMI /usr/bin/video --loop /opt/ltp/images/colorbar-and-bouncing-ball-1920x1080.mp4 &
MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do unmount $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
#Buzzer_start echo 0 >/sys/class/pwm/pwmchip0/export; echo 333333 >/sys/class/pwm/pwmchip0/pwm0/period;
#echo 10000 >/sys/class/pwm/pwmchip3/pwm0/duty_cycle
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
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
Temp lm73temp
MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
#MMC_write_25kB fwrite -q -n /media/mmcblk1/testfile -b 25000 -d -i 1
#MMC_write_25kB if [ -d /media/mmcblk1 ]; then fwrite -q -n /media/mmcblk1/testfile -b 25000 -d -i 1; else false; fi
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
#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`
#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_m.wav
#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_700ms.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
#RS485 rs485echo -d /dev/ttymxc2 -s 115200 -x 100 -b 32
#Touch touchmon -z -r /touch_tst_socket
#Buzzer echo 1 >/sys/class/pwm/pwmchip0/pwm0/enable; usleep 100000; echo 0 >/sys/class/pwm/pwmchip0/pwm0/enable
Wait sleep 0.9
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
#Touchtest_stop touchmon -t -r /touch_tst_socket -q
#Testimage_display_stop killall fingerpaint
Testimage_display_stop killall bball
#Testimage_HDMI_stop killall hdmi-test.sh
#Testimage_HDMI_stop hdmiconfig blank
#Testimage_HDMI killall video
#-----------------------------------------------------------------------------#
# 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 /usr/bin/fingerpaint &
#Testimage_display bball -f -l 0.1 &
#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
#Testimage_HDMI (while : ; do gst-launch-1.0 -v filesrc location=/opt/ltp/images/colorbar-and-bouncing-ball-1920x1080.mp4 typefind=true ! qtdemux ! vpudec frame-plus=6 output-format=0 ! queue ! imxv4l2sink sync=false device=/dev/video18; done) &
#Testimage_HDMI hdmi-test.sh
#Testimage_HDMI /usr/bin/video --loop /opt/ltp/images/colorbar-and-bouncing-ball-1920x1080.mp4 &
MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do unmount $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
#Buzzer_start echo 0 >/sys/class/pwm/pwmchip0/export; echo 333333 >/sys/class/pwm/pwmchip0/pwm0/period;
#echo 10000 >/sys/class/pwm/pwmchip3/pwm0/duty_cycle
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
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
Temp lm73temp
MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
#MMC_write_25kB fwrite -q -n /media/mmcblk1/testfile -b 25000 -d -i 1
#MMC_write_25kB if [ -d /media/mmcblk1 ]; then fwrite -q -n /media/mmcblk1/testfile -b 25000 -d -i 1; else false; fi
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
#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`
#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_m.wav
#Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_700ms.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
#RS485 rs485echo -d /dev/ttymxc2 -s 115200 -x 100 -b 32
#Touch touchmon -z -r /touch_tst_socket
#Buzzer echo 1 >/sys/class/pwm/pwmchip0/pwm0/enable; usleep 100000; echo 0 >/sys/class/pwm/pwmchip0/pwm0/enable
Wait sleep 0.9
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
#Touchtest_stop touchmon -t -r /touch_tst_socket -q
Testimage_display_stop killall fingerpaint
#Testimage_display_stop killall bball
#Testimage_HDMI_stop killall hdmi-test.sh
#Testimage_HDMI_stop hdmiconfig blank
#Testimage_HDMI killall video
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment