Skip to content
Snippets Groups Projects
Commit 7b6e49b8 authored by Tobias Kahlki's avatar Tobias Kahlki Committed by Jonas Höppner
Browse files

dual_espresso: Added emission and immunity testsuit for DualEspresso

* Adapt testscripts to run on both screens
* Touch button test for immunity test
* Beeper test for emission and immunity

BCS 746-000631
parent 881c2670
No related branches found
No related tags found
1 merge request!24dual_espresso: Added emission testsuit for DualEspresso
#-----------------------------------------------------------------------------#
# DESCRIPTION #
# ----------- #
# This is a configuration file for the SECO Northern Europe 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_display1 bball &
Testimage_display2 bball2 &
MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done
USB_sticks_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}' ) ;do umount $i; done
Touchtest_remove_socket1 rm -f /touch_tst_socket1
Touchtest_start1 touchmon -d -i /dev/input/by-path/platform-30a20000.i2c-event -s /touch_tst_socket1 -p 0
Touchtest_remove_socket2 rm -f /touch_tst_socket2
Touchtest_start2 touchmon -d -i /dev/input/by-path/platform-30ae0000.i2c-event -s /touch_tst_socket2 -p 0
RGB_LED rgb_leds_test on
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
eMMC_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
Network iptest -q -g 192.168.1.100 -n 1 -w 50
CAN can -n 2 -o 500
Serial1 serial -d /dev/ttymxc1 -q -b 115200 -c 5 -s 1024 -o 300
Serial2 serial -d /dev/ttymxc2 -q -b 115200 -c 5 -s 1024 -o 300
Touch1 touchmon -z -r /touch_tst_socket1
Touch2 touchmon -z -r /touch_tst_socket2
# DIO
Buzzer beep -f 2400
Wait sleep 1.0
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
RGB_LED rgb_leds_test off
Touchtest_stop1 touchmon -t -r /touch_tst_socket1 -q
Touchtest_stop2 touchmon -t -r /touch_tst_socket2 -q
Testimage_display_stop1 killall bball
Testimage_display_stop2 killall bball2
#-----------------------------------------------------------------------------#
# DESCRIPTION #
# ----------- #
# This is a configuration file for the SECO Northern Europe 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 #
#-----------------------------------------------------------------------------#
Fingerpaint1 fingerpaint &
Fingerpaint2 fingerpaint2 &
MMC_umount for i in `mount | grep mmcblk1 | awk '{print $1}'`; do umount $i; done
USB_sticks_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}' ) ;do umount $i; done
Touchtest_remove_socket1 rm -f /touch_tst_socket1
Touchtest_start1 touchmon -d -i /dev/input/by-path/platform-30a20000.i2c-event -s /touch_tst_socket1 -p 0
Touchtest_remove_socket2 rm -f /touch_tst_socket2
Touchtest_start2 touchmon -d -i /dev/input/by-path/platform-30ae0000.i2c-event -s /touch_tst_socket2 -p 0
RGB_LED rgb_leds_test on
LED_Button touch_button_test turn_on
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
eMMC_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
Network iptest -q -g 192.168.1.100 -n 1 -w 50
CAN can -n 2 -o 500
Serial1 serial -d /dev/ttymxc1 -q -b 115200 -c 5 -s 1024 -o 300
Serial2 serial -d /dev/ttymxc2 -q -b 115200 -c 5 -s 1024 -o 300
Touch1 touchmon -z -r /touch_tst_socket1
Touch2 touchmon -z -r /touch_tst_socket2
# DIO
Buzzer beep -f 2400
LED_Button touch_button_test test
Wait sleep 1.0
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
LED_Button touch_button_test turn_off
RGB_LED rgb_leds_test off
Touchtest_stop1 touchmon -t -r /touch_tst_socket1 -q
Touchtest_stop2 touchmon -t -r /touch_tst_socket2 -q
Fingerpaint_stop1 killall fingerpaint
Fingerpaint_stop2 killall fingerpaint2
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