Skip to content
Snippets Groups Projects
  • Tim Jaacks's avatar
    Tests: refs #22543 · eb9ec219
    Tim Jaacks authored
    * Moved test tools from recipes-guf to recipes-test
    * Removed ac97regtest and pman completely, because they are not relevant for our current platforms anymore
    * Corrected some summary entries in bitbake recipes
    eb9ec219
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
planet_emv 4.38 KiB
#-----------------------------------------------------------------------------#
# 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                                                                 #
#-----------------------------------------------------------------------------#
MMC_mount					mmc -q -f -t vfat
Flashlight_on				flashled -d 15 -m torch_on

Touch_conf_up_hys			echo 5 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/up_hys
Touch_conf_down_hys			echo 5 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/down_hys
Touch_conf_val_sample		echo 3 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_sample
Touch_conf_val_hold			echo 2 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_hold
Touch_conf_val_sustain		echo 1 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_sustain
Touch_conf_val_decay		echo 2 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/val_decay
Touch_conf_max_distance		echo 2 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_distance
Touch_conf_max_x			echo 4096 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_x
Touch_conf_min_x			echo 70 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_x
Touch_conf_max_y			echo 4096 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/max_y
Touch_conf_min_y			echo 90 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_y
Touch_conf_min_cal_diff		echo 100 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/min_cal_diff
Touch_conf_check_max_val	echo 15 > /sys/devices/platform/imx-i2c.1/i2c-1/1-002a/check_max_val
Touch_conf_timeout			echo 1 > /sys/class/firmware/timeout

Touchtest_start				rm -f /touch_tst_socket
Touchtest_start				touchmon -d -i /dev/input/event1 -s /touch_tst_socket -p 0
CapButtonTest_start			rm -f /cap_btn_tst_socket
CapButtonTest_start			touchmon -d -i /dev/input/event0 -s /cap_btn_tst_socket
Camera_start				/etc/init.d/camera start

#-----------------------------------------------------------------------------#
# TESTCASES                                                                   #
#-----------------------------------------------------------------------------#
Flash_write_25kB			fwrite -q -n /file25k -b 25000 -i 1
MMC_write_25kB				fwrite -q -n /mnt/mmc/testfile -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
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
Serial1						serial -d /dev/ttymxc1 -q -b 115200 -fn -c 5 -s 1024 -o 300
Serial2						serial -d /dev/ttymxc2 -q -b 115200 -fn -c 5 -s 1024 -o 300
Serial3						serial -d /dev/ttymxc3 -q -b 115200 -fn -c 5 -s 1024 -o 300
Serial4						serial -d /dev/ttymxc4 -q -b 115200 -fn -c 5 -s 1024 -o 300
Network						iptest -q -g 192.168.1.100 -n 1 -w 50
Touch						touchmon -z -r /touch_tst_socket
CapacitiveButtons			touchmon -z -r /cap_btn_tst_socket
Temp						lm73temp
Play_wave_file				aplay --quiet /opt/ltp/runtest/ding_48kHz_16bit_m.wav &

#-----------------------------------------------------------------------------#
# CLEANUP                                                                     #
#-----------------------------------------------------------------------------#
Camera_stop					/etc/init.d/camera stop
Flashlight_off				flashled -d 15 -m torch_off
Touchtest_stop				touchmon -t -r /touch_tst_socket -q
CapBtnTest_stop				touchmon -t -r /cap_btn_tst_socket -q