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

ltp-guf-test(sanvito-custom): added setup script and LED tests (refs #39957)

* added "sanvito-custom-setup.sh". This must be @source@d on each login before starting the test
* added LED test steps
* fixed SD-Card test

Change-Id: I6c2adc905161a72df8cfa9c50d230cd119271f32
parent b2bc7704
No related branches found
No related tags found
No related merge requests found
......@@ -13,15 +13,8 @@
# commands of the CLEANUP section are run once. #
#-----------------------------------------------------------------------------#
# Vorm Start einmal:
# source /opt/ltp/setup.sh
#
# setup.sh:
###########
# export PATH=$PATH:/opt/ltp/testcases/bin
# export DISPLAY=:0
# ubus call board enable '{"name": "usb"}'; mount -o remount,rw /tmp/E26F-BE71;
# ubus call board led '{"color": "w", "state": "s", "bright": "50"}';
# Bei jedem Login vorm Start einmal:
# source /opt/ltp/runtest/sanvito-custom-setup.sh
# /etc/config/network
###########
......@@ -58,24 +51,19 @@
#-----------------------------------------------------------------------------#
# PREPARATION #
#-----------------------------------------------------------------------------#
#Testimage_display /usr/bin/fingerpaint &
Testimage_display bball -f -l 0.1 &
#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; iptables -P FORWARD 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
LED_Red echo -n default-on >/sys/devices/soc0/leds/leds/red/trigger; echo -n 50 >/sys/devices/soc0/leds/leds/red/brightness
LED_White echo -n default-on >/sys/devices/soc0/leds/leds/white/trigger; echo -n 50 >/sys/devices/soc0/leds/leds/white/brightness
Ambient_Proximity ambprox_setup.sh
MMC_start mount /dev/mmcblk0p1 /media
USB_stick_start ubus call board enable '{"name": "usb"}'; mount -o remount,rw /tmp/E26F-BE71;
#-----------------------------------------------------------------------------#
......
# setup-steps to execute before using "sanvito-custom"
# This script must be started with "sourch sanvit-custom-setup.sh" to work properly
ln -s /usr/lib/libGL.so.1.2.0 /opt/lib/libGL.so.1.2
export PATH=$PATH:/opt/ltp/testcases/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
export DISPLAY=:0
ubus call board enable '{"name": "usb"}'; mount -o remount,rw /tmp/E26F-BE71;
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