Skip to content
Snippets Groups Projects
Commit 6b091861 authored by Marc-Oliver Westerburg's avatar Marc-Oliver Westerburg Committed by Norman Stetter
Browse files

ltp-guf-tests: added new "sanvito_custom"-script (refs #39957)

* added new SANVITO script for the custom BELD-OS

Note: still not fully working on BELD v0.3 snapshot because some OS-changes are required
* @aio@ fails often due to Kernel bug in IIO SysFS-interface (DAC-output not working for output values >= 100)
* @mmc@ test not working, because not yet supported by BELD OS v0.3 (supposed to be already fixed in newer versions)
* @fingerpaint@ not working, because of Qt-version conflict in BELD OS v0.3 (supposed to be already fixed in newer versions)
* @touch@ not working, because no driver support in BELD OS v0.3 (will hopefully be fixed with next BELD release, as well)
* @bball@ still crashing on all BELD versions (even new ones). Reason still unknown.

Change-Id: I6989010ef49265ba2e80715d94a0c79bbdba818f
parent 497717b6
No related branches found
No related tags found
No related merge requests found
#-----------------------------------------------------------------------------#
# 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 &
Touchtest_remove_socket rm -f /opt/touch_tst_socket
Touchtest_start touchmon -d -i /dev/input/event0 -s /opt/touch_tst_socket -p 0
Network_start iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT;
Network_eth0 ifconfig lan1 add 192.168.1.1
Network_eth1 ifconfig lan2 add 192.168.2.1
Network_eth2 ifconfig lan3 add 192.168.3.1
RS485pingpong_startBB2 ubus call board enable '{"name": "xye1"}'; ubus call board enable '{"name": "xye2"}'; rs485pingpong -k -d /dev/xye1 -s 4800 -x 100 -b 32 -n &
RS485pingpong_start34 ubus call board enable '{"name": "xye3"}'; ubus call board enable '{"name": "xye4"}'; rs485pingpong -k -d /dev/xye3 -s 4800 -x 100 -b 32 -n &
RS485pingpong_start5 ubus call board enable '{"name": "rs485"}';
AnalogIO_start ubus call board enable '{"name": "ain1"}'; ubus call board enable '{"name": "aout1"}'
Buzzer_start echo 0 >/sys/class/pwm/pwmchip3/export; echo 333333 >/sys/class/pwm/pwmchip3/pwm0/period; echo 10000 >/sys/class/pwm/pwmchip3/pwm0/duty_cycle
LED_Power_start echo 0 >/sys/class/pwm/pwmchip2/export; echo 2000000 >/sys/class/pwm/pwmchip2/pwm0/period; echo 1000000 >/sys/class/pwm/pwmchip2/pwm0/duty_cycle; echo 1 >/sys/class/pwm/pwmchip2/pwm0/enable
LED_Error_start echo 0 >/sys/class/pwm/pwmchip1/export; echo 2000000 >/sys/class/pwm/pwmchip1/pwm0/period; echo 1000000 >/sys/class/pwm/pwmchip1/pwm0/duty_cycle; echo 1 >/sys/class/pwm/pwmchip1/pwm0/enable
Ambient_Proximity ambprox_setup.sh ##gfi2c not found
USB_stick_start ubus call board enable '{"name": "usb"}'
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
#GPIO1 gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_1 -d out -e 1 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN1 -d in -e 1 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_1 -d out -e 0 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN1 -d in -e 0
#GPIO2 gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_2 -d out -e 1 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN2 -d in -e 1 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_2 -d out -e 0 && gpio -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN2 -d in -e 0
GPIO1 gpio_inout -o /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_1 -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN1 -d 1
GPIO2 gpio_inout -o /sys/devices/soc0/gpio_export_keypad_fixed_out/DIG_OUT_2 -g /sys/devices/soc0/gpio_export_keypad_fixed_in/DIG_IN2 -d 1
Temp lm73temp -n lm75
#MMC_write_25kB if [ -b /dev/mmcblk1 ]; then df /media/mmcblk1/ | grep mmcblk1 || mount /dev/mmcblk1 /media/mmcblk1; fwrite -q -n /media/mmcblk1/testfile -b 25000 -d -i 1; else false; fi
USB_stick_1_write_25kB if [ -b /dev/sda ]; then df /tmp/E26F-BE71/ | grep sda || mount /dev/sda /tmp/E26F-BE71/; fwrite -q -n /tmp/E26F-BE71/testfile -b 60000 -d -i 1; else false; fi
Network_eth0 iptest -q -g 192.168.1.100 -n 2000 -w 50
Network_eth1 iptest -q -g 192.168.2.100 -n 2000 -w 50
Network_eth2 iptest -q -g 192.168.3.100 -n 2000 -w 50
RS485_BB2 rs485pingpong -b 32 -r 6 -s 4800 -x 100 -o 1 -d /dev/xye1 -n
RS485_34 rs485pingpong -b 32 -r 6 -s 4800 -x 100 -o 1 -d /dev/xye4 -n
RS485_5 rs485pingpong -b 32 -r 6 -s 57600 -x 100 -o 1 -d /dev/rs485
Touch touchmon -z -r /opt/touch_tst_socket
Ambient i2c -d /dev/i2c-2 -s 0x60 -a 0x0b -n 0 -x 65536 -m 8 -l 2 -i 10
Proximity i2c -d /dev/i2c-2 -s 0x60 -a 0x08 -n 0 -x 65536 -m 8 -l 2 -i 10
AnalogIO aio -s iio:device1/in_voltage_raw -o iio:device2/out_voltage0_raw -e 0.4 -r 20 -i 5;
Buzzer echo 1 >/sys/class/pwm/pwmchip3/pwm0/enable; usleep 100000; echo 0 >/sys/class/pwm/pwmchip3/pwm0/enable
Wait sleep 0.9
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
Touchtest_stop touchmon -t -r /opt/touch_tst_socket -q
Testimage_display_stop killall fingerpaint
RS485pingpong_stop killall rs485pingpong
Testimage_display_stop killall bball
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