Documentation of all Testcases

src/tc/board/tc_board_aristainetos2.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_board_aristainetos2.py
# start all testcases for the aristainetos2 board
# tc_board_aristainetos2_linux_tests.py
# tc_workfd_set_toolchain.py

used Testcases:

src/tc/board/tc_board_aristainetos2.py. src/tc/board/tc_board_aristainetos2_linux_tests.py. src/tc/tc_workfd_set_toolchain.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_aristainetos2.py

src/tc/board/tc_board_aristainetos2_linux.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_board_aristainetos2_linux.py
# start all linux testcases for the aristainetos2 board

used Testcases:

src/tc/board/tc_board_aristainetos2_linux.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_aristainetos2_linux.py

src/tc/board/tc_board_aristainetos2_linux_bisect.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_board_aristainetos2_linux_bisect.py
# start a git bisect for the aristainetos2 board

used Testcases:

src/tc/board/tc_board_aristainetos2_linux_bisect.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_aristainetos2_linux_bisect.py

src/tc/board/tc_board_aristainetos2_linux_tests.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_board_aristainetos2_linux_tests.py
# start all linux testcases for the aristainetos2 board

used Testcases:

src/tc/board/tc_board_aristainetos2_linux_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_aristainetos2_linux_tests.py

src/tc/board/tc_board_ccu1_tests.py

# start with
# tbot.py -s lab_denx -c ccu1 -t tc_board_ccu1_tests.py
# start all testcases for the ccu1 board

used Testcases:

src/tc/board/tc_board_ccu1_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_ccu1_tests.py

src/tc/board/tc_board_corvus.py

# start with
# tbot.py -s lab_denx -c corvus -t tc_board_corvus.py
# start all testcases for the corvus board

used Testcases:

src/tc/board/tc_board_corvus.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_corvus.py

src/tc/board/tc_board_dxr2.py

# start with
# tbot.py -s lab_denx -c dxr2 -t tc_board_dxr2.py
# start all testcases for the dxr2 board

used Testcases:

src/tc/board/tc_board_dxr2.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2.py

src/tc/board/tc_board_dxr2_linux.py

# start with
# tbot.py -s lab_denx -c dxr2 -t tc_board_dxr2_linux.py
# start all linux testcases for the dxr2 board

used Testcases:

src/tc/board/tc_board_dxr2_linux.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2_linux.py

src/tc/board/tc_board_dxr2_lx_ubi_tests.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_board_dxr2_lx_ubi_tests.py
# more dxr2 specific ubi tests, maybe make them common

used Testcases:

src/tc/board/tc_board_dxr2_lx_ubi_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2_lx_ubi_tests.py

src/tc/board/tc_board_dxr2_ub.py

# start with
# tbot.py -s lab_denx -c dxr2 -t tc_board_dxr2_ub.py
# start all u-boot testcases for the dxr2 board

used Testcases:

src/tc/board/tc_board_dxr2_ub.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2_ub.py

src/tc/board/tc_board_dxr2_ub_ubi.py

# start with
# tbot.py -s lab_denx -c dxr2 -t tc_board_dxr2_ub_ubi.py
# start all ubi testcases for the dxr2 board

used Testcases:

src/tc/board/tc_board_dxr2_ub_ubi.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2_ub_ubi.py

src/tc/board/tc_board_dxr2_uboot_patchwork.py

# start with
# python2.7 src/common/tbot.py -c tbot_dxr2_uboot.cfg -t tc_board_dxr2_uboot_patchwork.py
# dxr2 check all patches with patchworknumber > default_nr
# in patchwork, if it is checkpatch clean and applies to
# current mainline without errors

used Testcases:

src/tc/board/tc_board_dxr2_uboot_patchwork.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_dxr2_uboot_patchwork.py

src/tc/board/tc_board_fipad.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad.py
# start all U-Boot/linux testcases for the fipad board

used Testcases:

src/tc/board/tc_board_fipad.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad.py

src/tc/board/tc_board_fipad_linux.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad_linux.py
# start all linux testcases for the fipad board

used Testcases:

src/tc/board/tc_board_fipad_linux.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad_linux.py

src/tc/board/tc_board_fipad_ub_tests.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad_ub_tests.py
# start all U-Boot testcases for the fipad board

used Testcases:

src/tc/board/tc_board_fipad_ub_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad_ub_tests.py

src/tc/board/tc_board_fipad_upd_ub.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad_upd_ub.py
# update SPL and u-boot.img on the SPI NOR or the MMC0
# card, and boot it ...

used Testcases:

src/tc/board/tc_board_fipad_upd_ub.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad_upd_ub.py

src/tc/board/tc_board_fipad_upd_ub_mmc.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad_upd_ub_mmc.py
# update SPL and u-boot.img on the MMC0

used Testcases:

src/tc/board/tc_board_fipad_upd_ub_mmc.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad_upd_ub_mmc.py

src/tc/board/tc_board_fipad_upd_ub_spi.py

# start with
# tbot.py -s lab_denx -c fipad -t tc_board_fipad_upd_ub_spi.py
# update SPL and u-boot.img on the SPI NOR

used Testcases:

src/tc/board/tc_board_fipad_upd_ub_spi.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_fipad_upd_ub_spi.py

src/tc/board/tc_board_flea3.py

# start with
# tbot.py -s lab_denx -c flea3 -t tc_board_flea3.py
# start all testcases for the flea3 board
# currently only test the nor unprotect with linux

used Testcases:

src/tc/board/tc_board_flea3.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_flea3.py

src/tc/board/tc_board_mcx.py

# start with
# tbot.py -s lab_denx -c mcx -t tc_board_mcx.py
# start all testcases for the mcx board linux stable and linux-ml

used Testcases:

src/tc/board/tc_board_mcx.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_mcx.py

src/tc/board/tc_board_mcx_tests.py

# start with
# tbot.py -s lab_denx -c mcx -t tc_board_mcx_tests.py
# start all testcases for the mcx board

used Testcases:

src/tc/board/tc_board_mcx_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_mcx_tests.py

src/tc/board/tc_board_shc.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc.py
# start all testcases for the shc board linux and linux-stable

used Testcases:

src/tc/board/tc_board_shc.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc.py

src/tc/board/tc_board_shc_compile_ml.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_compile_ml.py
# compile ML linux kernel for the shc board

used Testcases:

src/tc/board/tc_board_shc_compile_ml.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_compile_ml.py

src/tc/board/tc_board_shc_tests.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_tests.py
# start all testcases for the shc board

used Testcases:

src/tc/board/tc_board_shc_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_tests.py

src/tc/board/tc_board_shc_ub_create_regdump.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_ub_create_regdump.py
# create a uboot regdump for all interesting registers
# on the shc board

used Testcases:

src/tc/board/tc_board_shc_ub_create_regdump.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_ub_create_regdump.py

src/tc/board/tc_board_shc_ub_tests.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_ub_tests.py
# start all U-Boot testcases for the shc board

used Testcases:

src/tc/board/tc_board_shc_ub_tests.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_ub_tests.py

src/tc/board/tc_board_shc_uboot_git_bisect.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_uboot_git_bisect.py
# start tc:

used Testcases:

src/tc/board/tc_board_shc_uboot_git_bisect.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_uboot_git_bisect.py

src/tc/board/tc_board_shc_upd_ub.py

# start with
# tbot.py -s lab_denx -c shc -t tc_board_shc_upd_ub.py
# update MLO and u-boot.img on the SD card or the eMMC
# card, and boot it ...

used Testcases:

src/tc/board/tc_board_shc_upd_ub.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_shc_upd_ub.py

src/tc/board/tc_board_sigmatek-nand.py

# start with
# tbot.py -s lab_denx -c sigmatek-nand -t tc_board_sigmatek-nand.py
# On the sigmatek-nand board we have problems with a crash in U-boot
# We do:
# - wait until linux state is reached
# - wait random seconds (3 -10)
# - power off the board
# - wait 3 seconds for powering really of the board
# - loop this 50 times

used Testcases:

src/tc/board/tc_board_sigmatek-nand.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_sigmatek-nand.py

src/tc/board/tc_board_sirius_dds.py

# start with
# python2.7 src/common/tbot.py -c tbot_sirius_dds.cfg -t tc_board_sirius_dds.py
# On the sirius board we have problems with ubifs
# on nand flash and power cuts. So this is a special
# testcase for this board. We do:
# - go into statte u-boot
# - start linux with ubifs as rootfs
# - wait until Userspace APP SiriusApplicat is started
# - wait random seconds (3 -10)
# - power off the board
# - wait 3 seconds for powering really of the board
# - loop this 50 times
# if we have an ubifs error, testcase ends with error

used Testcases:

src/tc/board/tc_board_sirius_dds.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_sirius_dds.py

src/tc/board/tc_board_smartweb.py

# start with
# tbot.py -s lab_denx -c smartweb -t tc_board_smartweb.py
# start all testcases for the smartweb board

used Testcases:

src/tc/board/tc_board_smartweb.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_smartweb.py

src/tc/board/tc_board_taurus.py

# start with
# tbot.py -s lab_denx -c taurus -t tc_board_taurus.py
# start all testcases for the taurus board

used Testcases:

src/tc/board/tc_board_taurus.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_taurus.py

src/tc/board/tc_board_tqm5200s_try_cur_ub.py

# start with
# tbot.py -s lab_denx -c tqm5200s -t tc_board_tqm5200s_try_cur_ub.py
# remove current u-boot code on the lab PC
# then call tc tc_board_tqm5200s_ub_comp_install.py

used Testcases:

src/tc/board/tc_board_tqm5200s_try_cur_ub.py. src/tc/board/tc_board_tqm5200s_ub_comp_install.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_tqm5200s_try_cur_ub.py

src/tc/board/tc_board_tqm5200s_ub_comp_install.py

# start with
# tbot.py -s lab_denx -c tqm5200s -t tc_board_tqm5200s_ub_comp_install.py
# compile and install U-Boot for the tqm5200s board
# install U-Boot with BDI

used Testcases:

src/tc/board/tc_board_tqm5200s_ub_comp_install.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_board_tqm5200s_ub_comp_install.py

src/tc/board/tc_linux_create_reg_file_am335x.py

# start with
# tbot.py -s lab_denx -c cuby -t tc_linux_create_reg_file_am335x.py
# create a regfile for am335x SoC registers

used Testcases:

src/tc/board/tc_linux_create_reg_file_am335x.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_linux_create_reg_file_am335x.py

src/tc/board/tc_linux_create_reg_file_at91sam9g15.py

# start with
# python2.7 src/common/tbot.py -c tbot_wivue2.cfg -t tc_linux_create_reg_file_at91sam9g15.py
# create a regfile for at91sam9g15 SoC registers

used Testcases:

src/tc/board/tc_linux_create_reg_file_at91sam9g15.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_linux_create_reg_file_at91sam9g15.py

src/tc/board/tc_linux_create_reg_file_imx6qdl.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_linux_create_reg_file_imx6qdl.py
# create a regfile for am335x SoC registers

used Testcases:

src/tc/board/tc_linux_create_reg_file_imx6qdl.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/board/tc_linux_create_reg_file_imx6qdl.py

src/tc/debugger/bdi/tc_lab_bdi_connect.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_bdi_connect.py
# connect to the BDI if tb.config.board_has_debugger != 0
# - send to workfd tb.config.lab_bdi_upd_uboot_bdi_cmd
# - set BDI prompt tb.config.lab_bdi_upd_uboot_bdi_prompt
# - wait for BDI prompt

used Testcases:

src/tc/debugger/bdi/tc_lab_bdi_connect.py.

used config variables:

board_has_debugger. lab_bdi_upd_uboot_bdi_cmd. lab_bdi_upd_uboot_bdi_prompt.

https://github.com/hsdenx/tbot/tree/master/src/tc/debugger/bdi/tc_lab_bdi_connect.py

src/tc/debugger/bdi/tc_lab_bdi_disconnect.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_bdi_disconnect.py
# disconnect from the BDI
# - send bdi command "quit"
# - set tb.config.linux_prompt

used Testcases:

src/tc/debugger/bdi/tc_lab_bdi_disconnect.py.

used config variables:

tb_config_linux_prompt.

https://github.com/hsdenx/tbot/tree/master/src/tc/debugger/bdi/tc_lab_bdi_disconnect.py

src/tc/debugger/bdi/tc_lab_bdi_run.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_bdi_upd_uboot.py
# BDI run
# - send "res halt" to workfd
# - send BDI cmd tb.config.lab_bdi_upd_uboot_bdi_run

used Testcases:

src/tc/debugger/bdi/tc_lab_bdi_upd_uboot.py.

used config variables:

lab_bdi_upd_uboot_bdi_run.

https://github.com/hsdenx/tbot/tree/master/src/tc/debugger/bdi/tc_lab_bdi_run.py

src/tc/debugger/bdi/tc_lab_bdi_upd_uboot.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_bdi_upd_uboot.py
# update u-boot with BDI
# - send BDI cmd: "res halt"
# - send BDI cmd: "era"
# - send BDI cmd:
#   tb.config.lab_bdi_upd_uboot_bdi_prog + ' ' + tb.config.lab_bdi_upd_uboot_bdi_file + ' BIN'
# - send BDI cmd: tb.config.lab_bdi_upd_uboot_bdi_run

used Testcases:

src/tc/debugger/bdi/tc_lab_bdi_upd_uboot.py.

used config variables:

lab_bdi_upd_uboot_bdi_prog. lab_bdi_upd_uboot_bdi_file. lab_bdi_upd_uboot_bdi_run.

https://github.com/hsdenx/tbot/tree/master/src/tc/debugger/bdi/tc_lab_bdi_upd_uboot.py

src/tc/default/tc_def_tbot.py

# start with
# tbot.py -s lab_denx -c cfgfile -t tc_def_tbot.py
# simple set default values for tbot

used Testcases:

src/tc/default/tc_def_tbot.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/default/tc_def_tbot.py

src/tc/default/tc_def_ub.py

# start with
# tbot.py -s lab_denx -c cfgfile -t tc_def_ub.py
# simple set default values for U-Boot testcases

used Testcases:

src/tc/default/tc_def_ub.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/default/tc_def_ub.py

src/tc/demo/tc_demo_can_part1.py

# start with
# python2.7 src/common/tbot.py -c tbot_board.cfg -t tc_demo_can_part1.py
# start tc:
# starts a can demo
# For this demo the fipad board in the denx lab is used.
# To test the CAN bus we have in the DENX lab installed a PC, called
# CANPC to which a PEAK CAN adapter is attached, which then is connected
# to the CAN bus the fipad board is also connected.
#
# We use tc_workfd_can.py for testing
#
# We open a new connection to the LabPC, called canm and then we ssh
# to the CANPC, from where we then start candump, while on the console
# connection a cansend was started. So we can read from the canm
# connection, the bytes we send with cansend on the console connection.
#
# If we got the same bytes as we send -> TC True
# else the TC returns False
#
# Only one cansend call is tested ... room for more.

used Testcases:

src/tc/demo/tc_demo_can_part1.py. src/tc/linux/tc_workfd_can.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_can_part1.py

src/tc/demo/tc_demo_compile_install_test.py

# start with
# tbot.py -c -s lab_denx -c demo -t tc_demo_compile_install_test.py
# start tc:
# - compile source tree
# - install bin on board
# - call board uboot testcase
# tb.config.tc_demo_compile_install_test_files contains a list of files,
# which are copied to
# tb.config.tftprootdir + tb.config.tftpboardname + '/' + tb.config.ub_load_board_env_subdir

used Testcases:

src/tc/demo/tc_demo_compile_install_test.py.

used config variables:

tb_config_tc_demo_compile_install_test_files. tftprootdir. tftpboardname. ub_load_board_env_subdir.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_compile_install_test.py

src/tc/demo/tc_demo_get_ub_code.py

# start with
# python2.7 src/common/tbot.py -c tbot_board.cfg -t tc_demo_get_ub_code.py
# start tc:
# - rm old u-boot tree (if there is one)
# - tc_lab_get_uboot_source.py
# -

used Testcases:

src/tc/demo/tc_demo_get_ub_code.py. src/tc/tc_lab_get_uboot_source.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_get_ub_code.py

src/tc/demo/tc_demo_part1.py

# start with
# tbot.py -s lab_denx -c smartweb -t tc_demo_part1.py
# start tc:
# - call tc_demo_get_ub_code.py
# - call tc_demo_compile_install_test.py

used Testcases:

src/tc/demo/tc_demo_part1.py. src/tc/demo/tc_demo_get_ub_code.py. src/tc/demo/tc_demo_compile_install_test.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_part1.py

src/tc/demo/tc_demo_part2.py

# start with
# tbot.py -s lab_denx -c smartweb -t tc_demo_part2.py
# start tc:
# - call tc_demo_get_ub_code.py
# - call tc_demo_compile_install_test.py

used Testcases:

src/tc/demo/tc_demo_part2.py. src/tc/demo/tc_demo_get_ub_code.py. src/tc/demo/tc_demo_compile_install_test.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_part2.py

src/tc/demo/tc_demo_part3.py

# start with
# tbot.py -s lab_denx -c smartweb -t tc_demo_part3.py
# start tc:

used Testcases:

src/tc/demo/tc_demo_part3.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/demo/tc_demo_part3.py

src/tc/lab/denx/tc_lab_denx_connect_to_board.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_connect_to_board.py
# connect to board with connect

used Testcases:

src/tc/lab/denx/tc_lab_denx_connect_to_board.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_denx_connect_to_board.py

src/tc/lab/denx/tc_lab_denx_disconnect_from_board.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_disconnect_from_board.py
# disconnect from board in denx vlab

used Testcases:

src/tc/lab/denx/tc_lab_denx_disconnect_from_board.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_denx_disconnect_from_board.py

src/tc/lab/denx/tc_lab_denx_get_power_state.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_get_power_state.py
# get the power state of the board, and save it in
# tb.power_state

used Testcases:

src/tc/lab/denx/tc_lab_denx_get_power_state.py.

used config variables:

tb_power_state.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_denx_get_power_state.py

src/tc/lab/denx/tc_lab_denx_power.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_power.py
# power on/off the board

used Testcases:

src/tc/lab/denx/tc_lab_denx_power.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_denx_power.py

src/tc/lab/denx/tc_lab_interactive_get_power_state.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_get_power_state.py
# get the power state of the board through user input,
# and save it in tb.power_state

used Testcases:

src/tc/lab/denx/tc_lab_denx_get_power_state.py.

used config variables:

tb_power_state.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_interactive_get_power_state.py

src/tc/lab/denx/tc_lab_interactive_power.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_denx_power.py
# power on/off the board from hand

used Testcases:

src/tc/lab/denx/tc_lab_denx_power.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/denx/tc_lab_interactive_power.py

src/tc/lab/tc_lab_sispmctl_get_power_state.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_sispmctl_get_power_state.py
# get the power state of the board through sispmctl
# and save it in tb.power_state
# find more information for the Gembird Silver Shield PM power controller:
# http://sispmctl.sourceforge.net/
#
# use testcase "tc_lab_sispmctl_get_variables.py" for setting
# the serial and the index you need for the specific board.
#
# This file is an example for a setup, you need to adapt
# this to your needs.
#

used Testcases:

src/tc/lab/tc_lab_sispmctl_get_power_state.py.

used config variables:

tb_power_state.

links:

http://sispmctl.sourceforge.net/

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/tc_lab_sispmctl_get_power_state.py

src/tc/lab/tc_lab_sispmctl_get_variables.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_sispmctl_get_variables.py
# get serial and index for tb.config.boardlabpowername for
# controlling the Gembird Silver Shield PM power controller
# and save it in tb.config.gembird_serial and tb.config.gembird_index
#

used Testcases:

src/tc/lab/tc_lab_sispmctl_get_variables.py.

used config variables:

boardlabpowername. tb_config_gembird_serial. tb_config_gembird_index.

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/tc_lab_sispmctl_get_variables.py

src/tc/lab/tc_lab_sispmctl_set_power_state.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_sispmctl_set_power_state.py
# power on/off the board
#
# get the power state of the board through sispmctl
# and save it in tb.power_state
# find more information for the Gembird Silver Shield PM power controller:
# http://sispmctl.sourceforge.net/
#
# use testcase "tc_lab_sispmctl_get_variables.py" for setting
# the serial and the index you need for the specific board.
#
# This file is an example for a setup, you need to adapt
# this to your needs.
#

used Testcases:

src/tc/lab/tc_lab_sispmctl_set_power_state.py.

used config variables:

tb_power_state.

links:

http://sispmctl.sourceforge.net/

https://github.com/hsdenx/tbot/tree/master/src/tc/lab/tc_lab_sispmctl_set_power_state.py

src/tc/linux/ubi/tc_lx_ubi_attach.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_ubi_attach.py

used Testcases:

src/tc/linux/ubi/tc_lx_ubi_attach.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/ubi/tc_lx_ubi_attach.py

src/tc/linux/ubi/tc_lx_ubi_detach.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_ubi_detach.py
# detach ubi device tb.config.tc_ubi_mtd_dev

used Testcases:

src/tc/linux/ubi/tc_lx_ubi_detach.py.

used config variables:

tc_ubi_mtd_dev.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/ubi/tc_lx_ubi_detach.py

src/tc/linux/ubi/tc_lx_ubi_format.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_ubi_format.py
# ubiformat tb.config.tc_ubi_mtd_dev with tb.config.tc_lx_ubi_format_filename

used Testcases:

src/tc/linux/ubi/tc_lx_ubi_format.py.

used config variables:

tc_ubi_mtd_dev. tc_lx_ubi_format_filename.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/ubi/tc_lx_ubi_format.py

src/tc/linux/ubi/tc_lx_ubi_info.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_ubi_info.py
# ubinfo tb.config.tc_ubi_ubi_dev

used Testcases:

src/tc/linux/ubi/tc_lx_ubi_info.py.

used config variables:

tc_ubi_ubi_dev.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/ubi/tc_lx_ubi_info.py

src/tc/linux/ubi/tc_lx_ubi_tests.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_ubi_tests.py
# - install mtd utils if needed with tc_lx_mtdutils_install.py
# - attach ubi device with tc_lx_ubi_attach.py
# - get info with tc_lx_ubi_info.py
# - get parameters with tc_lx_get_ubi_parameters.py

used Testcases:

src/tc/linux/ubi/tc_lx_ubi_tests.py. src/tc/linux/tc_lx_mtdutils_install.py. src/tc/linux/ubi/tc_lx_ubi_attach.py. src/tc/linux/ubi/tc_lx_ubi_info.py. src/tc/linux/tc_lx_get_ubi_parameters.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/ubi/tc_lx_ubi_tests.py

src/tc/linux/tc_lx_bonnie.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_bonnie.py
# run a bonnie test, if timer tc_workfd_check_tc_time.py timed out
# - try to install bonnie if not is installed tc_lx_bonnie_install.py
# - start bonnie on device tb.config.tc_lx_bonnie_dev with
#   size tb.config.tc_lx_bonnie_sz

used Testcases:

src/tc/linux/tc_lx_bonnie.py. src/tc/linux/tc_workfd_check_tc_time.py. src/tc/linux/tc_lx_bonnie_install.py.

used config variables:

tc_lx_bonnie_dev. tc_lx_bonnie_sz.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_bonnie.py

src/tc/linux/tc_lx_bonnie_install.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_bonnie_install.py
# get bonnie source and install it

used Testcases:

src/tc/linux/tc_lx_bonnie_install.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_bonnie_install.py

src/tc/linux/tc_lx_check_reg_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_check_reg_file.py
# checks if the default values in reg file tb.config.tc_lx_create_reg_file_name
# on the tbot host in tb.workdir have the same values, as the
# registers on the board. Needs devmem2 installed.
# format of the regfile:
# regaddr mask type defval
# ToDo: use the file from the lab host, not the tbot host

used Testcases:

src/tc/linux/tc_lx_check_reg_file.py.

used config variables:

tc_lx_create_reg_file_name. tb_workdir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_check_reg_file.py

src/tc/linux/tc_lx_check_usb_authorized.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_check_usb_authorized.py
# check if usb device tb.config.tc_lx_check_usb_authorized needs authorizing

used Testcases:

src/tc/linux/tc_lx_check_usb_authorized.py.

used config variables:

tc_lx_check_usb_authorized.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_check_usb_authorized.py

src/tc/linux/tc_lx_cpufreq.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_cpufreq.py
# check if frequencies in tb.config.tc_lx_cpufreq_frequences
# are possible to set with cpufreq-info

used Testcases:

src/tc/linux/tc_lx_cpufreq.py.

used config variables:

tc_lx_cpufreq_frequences.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_cpufreq.py

src/tc/linux/tc_lx_create_dummy_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_create_dummy_file.py
# create a random dummy file tb.tc_lx_dummy_file_tempfile in linux
# on tb.c_con with bs = tb.tc_lx_dummy_file_bs and
# count = tb.tc_lx_dummy_file_count

used Testcases:

src/tc/linux/tc_lx_create_dummy_file.py.

used config variables:

tb_tc_lx_dummy_file_tempfile. tb_c_con. tb_tc_lx_dummy_file_bs. tb_tc_lx_dummy_file_count.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_create_dummy_file.py

src/tc/linux/tc_lx_create_reg_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_create_reg_file.py
# creates a reg file tb.config.tc_lx_create_reg_file_name on the tbot host
# in tb.workdir
# read from tb.config.tc_lx_create_reg_file_start to tb.config.tc_lx_create_reg_file_stop
# and writes the results in the regfile
# format of the regfile:
# regaddr mask type defval
# This reg file can be used as a default file, how the
# registers must be setup, check it with testcase
# tc_lx_check_reg_file.py
# ToDo: use the file from the lab host, not the tbot host

used Testcases:

src/tc/linux/tc_lx_create_reg_file.py. src/tc/linux/tc_lx_check_reg_file.py.

used config variables:

tc_lx_create_reg_file_name. tb_workdir. tc_lx_create_reg_file_start. tc_lx_create_reg_file_stop.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_create_reg_file.py

src/tc/linux/tc_lx_devmem2_install.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_devmem2_install.py
# get devmem2 source from www.lartmaker.nl/lartware/port/devmem2.c
# and install it

used Testcases:

src/tc/linux/tc_lx_devmem2_install.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_devmem2_install.py

src/tc/linux/tc_lx_dmesg_grep.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_dmesg_grep.py
# check if string tb.config.tc_lx_dmesg_grep_name is in dmesg output.

used Testcases:

src/tc/linux/tc_lx_dmesg_grep.py.

used config variables:

tc_lx_dmesg_grep_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_dmesg_grep.py

src/tc/linux/tc_lx_eeprom.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_eeprom.py
# Test an eeprom:
# - read the content from eeprom @ tb.config.tc_lx_eeprom_tmp_dir
#   with "cat" into tmpfile
# - check tb.config.tc_lx_eeprom_wp_gpio != 'none'
#   if WP pin works
# - generate random file with tb.config.tc_lx_eeprom_wp_sz size
# - write it into eeprom
# - reread it
# - compare it with original
# - restore original eeprom content at end

used Testcases:

src/tc/linux/tc_lx_eeprom.py.

used config variables:

tc_lx_eeprom_tmp_dir. tc_lx_eeprom_wp_gpio. tc_lx_eeprom_wp_sz.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_eeprom.py

src/tc/linux/tc_lx_get_ubi_parameters.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_get_ubi_parameters.py
# get ubi parameters of ubi device tb.config.tc_ubi_mtd_dev
# save them into:
# - tb.config.tc_ubi_max_leb_cnt
# - tb.config.tc_ubi_min_io_size
# - tb.config.tc_ubi_leb_size

used Testcases:

src/tc/linux/tc_lx_get_ubi_parameters.py.

used config variables:

tc_ubi_mtd_dev. tc_ubi_max_leb_cnt. tc_ubi_min_io_size. tc_ubi_leb_size.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_get_ubi_parameters.py

src/tc/linux/tc_lx_get_version.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_get_version.py
# get the linux version and create event LINUX_VERSION
# save the linux version in tb.config.tc_return

used Testcases:

src/tc/linux/tc_lx_get_version.py.

used config variables:

tc_return.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_get_version.py

src/tc/linux/tc_lx_gpio.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_gpio.py
# set in linux gpio tb.config.tc_lx_gpio_nr to direction tb.config.tc_lx_gpio_dir
# and value tb.config.tc_lx_gpio_val

used Testcases:

src/tc/linux/tc_lx_gpio.py.

used config variables:

tc_lx_gpio_nr. tc_lx_gpio_dir. tc_lx_gpio_val.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_gpio.py

src/tc/linux/tc_lx_mount.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_mount.py
# mount device tb.config.tc_lx_mount_dev with fs type tb.config.tc_lx_mount_fs_type
# to tb.config.tc_lx_mount_dir

used Testcases:

src/tc/linux/tc_lx_mount.py.

used config variables:

tc_lx_mount_dev. tc_lx_mount_fs_type. tc_lx_mount_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_mount.py

src/tc/linux/tc_lx_mtdutils_install.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_mtdutils_install.py
# check if mtdutils are installed. If not, clone the code with
# git clone git://git.infradead.org/mtd-utils.git mtd-utils
# and install it

used Testcases:

src/tc/linux/tc_lx_mtdutils_install.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_mtdutils_install.py

src/tc/linux/tc_lx_partition_check.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_partition_check.py
# cp a dummy file into a partiton umount/mount it and
# compare it.
# - Mount tb.config.tc_lx_mount_dir with tc_lx_mount.py

used Testcases:

src/tc/linux/tc_lx_partition_check.py. src/tc/linux/tc_lx_mount.py.

used config variables:

tc_lx_mount_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_partition_check.py

src/tc/linux/tc_lx_printenv.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_printenv.py
# simple printenv linux command

used Testcases:

src/tc/linux/tc_lx_printenv.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_printenv.py

src/tc/linux/tc_lx_regulator.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_regulator.py
# check if regulators in tb.config.tc_lx_regulator_nrs exist, and have
# the correct microvolts settings.

used Testcases:

src/tc/linux/tc_lx_regulator.py.

used config variables:

tc_lx_regulator_nrs.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_regulator.py

src/tc/linux/tc_lx_trigger_wdt.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_trigger_wdt.py
# simple trigger wdt with command tb.config.tc_lx_trigger_wdt_cmd

used Testcases:

src/tc/linux/tc_lx_trigger_wdt.py.

used config variables:

tc_lx_trigger_wdt_cmd.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_trigger_wdt.py

src/tc/linux/tc_lx_uname.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lx_uname.py
# simple linux "uname -a" command

used Testcases:

src/tc/linux/tc_lx_uname.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_lx_uname.py

src/tc/linux/tc_workfd_apply_local_patches.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_apply_local_patches.py
# apply patches from directory tb.config.tc_workfd_apply_local_patches_dir
# with 'git am -3' to the source in current directory.
# if tb.config.tc_workfd_apply_local_patches_checkpatch_cmd != 'none'
# check the patches with the checkpatch cmd tb.config.tc_workfd_apply_local_patches_checkpatch_cmd
# before applying.

used Testcases:

src/tc/linux/tc_workfd_apply_local_patches.py.

used config variables:

tc_workfd_apply_local_patches_dir. tc_workfd_apply_local_patches_checkpatch_cmd. tc_workfd_apply_local_patches_checkpatch_cmd.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_apply_local_patches.py

src/tc/linux/tc_workfd_apply_patchwork_patches.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_apply_patchwork_patches.py
# apply patchworkpatches from list:
# tb.config.tc_workfd_apply_patchwork_patches_list:
# to source in current directory.
# creates event:
# - PW_NR: which patchwork number used
# - PW_CLEAN: is it checkpatch clean
# - PW_AA: already applied
# - PW_APPLY: apply it clean to source

used Testcases:

src/tc/linux/tc_workfd_apply_patchwork_patches.py.

used config variables:

tb_config_tc_workfd_apply_patchwork_patches_list:.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_apply_patchwork_patches.py

src/tc/linux/tc_workfd_can.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_can.py
#
# minimal can test:
# starts a new connection named tb_canm. This connection runs
# on board/PC which has a can conncetion to the board tbot
# tests, named CAN PC.
# If necessary (tb.config.tc_workfd_can_ssh != 'no'), tc connects first
# to ssh (if the CAN PC is not the lab PC). Also if necessary
# (tb.config.tc_workfd_can_su != 'no', switch to superuser on the CAN PC.
#
# Set on the CAN PC, with the "ip" command the bitrate
# tb.config.tc_workfd_can_bitrate for the can device tb.config.tc_workfd_can_dev
# and activate the interface.
#
# Now on the board, go into tb.config.tc_workfd_can_iproute_dir
# (which contains the "ip" command ...
# Set the bitrate with it and activate the can interface.
# Goto into tb.config.tc_workfd_can_util_dir which contains canutils
# Send '123#DEADBEEF' with cansend
#
# check if the CAN PC gets this string.
# End True if this is the case, False else
#
# ToDo:
# - get rid of tb.config.tc_workfd_can_iproute_dir and tb.config.tc_workfd_can_util_dir
#   (add the commands to rootfs ...)
# - support different can devices on the CAN PC and board

used Testcases:

src/tc/linux/tc_workfd_can.py.

used config variables:

tc_workfd_can_bitrate. tc_workfd_can_dev. tc_workfd_can_iproute_dir. tc_workfd_can_util_dir. tc_workfd_can_iproute_dir. tc_workfd_can_util_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_can.py

src/tc/linux/tc_workfd_cd_to_dir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_cd_to_dir.py
# simple cd into directory tb.config.tc_workfd_cd_name

used Testcases:

src/tc/linux/tc_workfd_cd_to_dir.py.

used config variables:

tc_workfd_cd_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_cd_to_dir.py

src/tc/linux/tc_workfd_check_cmd_success.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_cmd_success.py
# simple check if previous shell command was succesful

used Testcases:

src/tc/linux/tc_workfd_check_cmd_success.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_cmd_success.py

src/tc/linux/tc_workfd_check_if_cmd_exist.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_if_cmd_exist.py
# check if a command exists

used Testcases:

src/tc/linux/tc_workfd_check_if_cmd_exist.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_if_cmd_exist.py

src/tc/linux/tc_workfd_check_if_dir_exist.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_if_dir_exist.py
# check if a dir in tbot workdir exist
# this tc returns always true, but sets
# tb.config.tc_return True or False, because we may not
# want to end testcase failed, if dir not exists.

used Testcases:

src/tc/linux/tc_workfd_check_if_dir_exist.py.

used config variables:

tc_return.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_if_dir_exist.py

src/tc/linux/tc_workfd_check_if_file_exist.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_if_file_exist.py
# check if a file in tbot workdir exist

used Testcases:

src/tc/linux/tc_workfd_check_if_file_exist.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_if_file_exist.py

src/tc/linux/tc_workfd_check_tar_content.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_tar_content.py
# check if the strings in the tb.config.tc_workfd_check_tar_content_elements
# list are in the tar file tb.config.tc_workfd_check_tar_content_path
#
# tb.config.tc_workfd_check_tar_content_path path and file name
# tb.config.tc_workfd_check_tar_content_elements list of elements in the tar file
# tb.config.tc_workfd_check_tar_content_endtc_onerror end TC when element is not found

used Testcases:

src/tc/linux/tc_workfd_check_tar_content.py.

used config variables:

tb_config_tc_workfd_check_tar_content_elements. tb_config_tc_workfd_check_tar_content_path. tb_config_tc_workfd_check_tar_content_path. tb_config_tc_workfd_check_tar_content_elements. tb_config_tc_workfd_check_tar_content_endtc_onerror.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_tar_content.py

src/tc/linux/tc_workfd_check_tc_time.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_check_tc_time.py
# check if time for a special testcase is expired.
# some testcases (like writting in a flash) are not good for
# execute them every day, so give them a timeout. This testcase
# checks, if the testcases is ready for a new run.
# False means time is not expired
# True means time is expired

used Testcases:

src/tc/linux/tc_workfd_check_tc_time.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_check_tc_time.py

src/tc/linux/tc_workfd_compile_linux.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_compile_linux.py
# compile linux:
# - set toolchain with tc_lab_set_toolchain.py
# - if tb.config.tc_workfd_compile_linux_clean == 'yes'
#   call "make mrproper"
# - tb.config.tc_workfd_compile_linux_load_addr != 'no'
#   add LOAD_ADDR=tb.config.tc_workfd_compile_linux_load_addr to make
# - make tb.config.tc_workfd_compile_linux_boardname defconfig
# - make tb.config.tc_workfd_compile_linux_makeoptions tb.config.tc_workfd_compile_linux_make_target
# - if tb.config.tc_workfd_compile_linux_modules != 'none'
#   compile modules
# - if tb.config.tc_workfd_compile_linux_dt_name != 'none'
#   compile DTB from list tb.config.tc_workfd_compile_linux_dt_name
# - if tb.config.tc_workfd_compile_linux_fit_its_file != 'no'
#   create FIT image
#   mkimage path: tb.config.tc_workfd_compile_linux_mkimage
#   fit description file: tb.config.tc_workfd_compile_linux_fit_its_file
#   tb.config.tc_workfd_compile_linux_fit_file
# - if tb.config.tc_workfd_compile_linux_append_dt != 'no'
#   append dtb to kernel image
# tb.config.tc_workfd_compile_linux_boardname _defconfig

used Testcases:

src/tc/linux/tc_workfd_compile_linux.py. src/tc/tc_lab_set_toolchain.py.

used config variables:

tc_workfd_compile_linux_clean. tc_workfd_compile_linux_load_addr. tc_workfd_compile_linux_boardname. tc_workfd_compile_linux_makeoptions. tc_workfd_compile_linux_make_target. tc_workfd_compile_linux_modules. tc_workfd_compile_linux_dt_name. tc_workfd_compile_linux_dt_name. tc_workfd_compile_linux_fit_its_file. tc_workfd_compile_linux_mkimage. tc_workfd_compile_linux_fit_its_file. tc_workfd_compile_linux_fit_file. tc_workfd_compile_linux_append_dt. tc_workfd_compile_linux_boardname.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_compile_linux.py

src/tc/linux/tc_workfd_connect_with_conmux.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_connect_with_conmux.py
# connect to console with conmux
# Never tested !!!

used Testcases:

src/tc/linux/tc_workfd_connect_with_conmux.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_connect_with_conmux.py

src/tc/linux/tc_workfd_connect_with_kermit.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_connect_with_kermit.py
# connect with kermit to serials board console
# - if tb.config.tc_workfd_connect_with_kermit_ssh != 'none'
#   connect first with ssh to another PC (where kermit is started)
# - start kermit
# - if tb.config.tc_workfd_connect_with_kermit_rlogin == 'none'
#   connect with command in tb.config.tc_workfd_connect_with_kermit_rlogin
#   else
#   set line tb.config.kermit_line and speed tb.config.kermit_speed and
#   connect to serial line.

used Testcases:

src/tc/linux/tc_workfd_connect_with_kermit.py.

used config variables:

tc_workfd_connect_with_kermit_ssh. tc_workfd_connect_with_kermit_rlogin. tc_workfd_connect_with_kermit_rlogin. kermit_line. kermit_speed.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_connect_with_kermit.py

src/tc/linux/tc_workfd_cp_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_cp_file.py
# simple copy file from tb.tc_workfd_cp_file_a to tb.tc_workfd_cp_file_b

used Testcases:

src/tc/linux/tc_workfd_cp_file.py.

used config variables:

tb_tc_workfd_cp_file_a. tb_tc_workfd_cp_file_b.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_cp_file.py

src/tc/linux/tc_workfd_create_ubi_rootfs.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_create_ubi_rootfs.py
# create a ubifs rootfs
# ubi rootfs path: tb.config.tc_workfd_create_ubi_rootfs_path
# ubi parameters:
# tb.config.tc_ubi_min_io_size tb.config.tc_ubi_leb_size tb.config.tc_ubi_max_leb_cnt
# output path: tb.config.tc_workfd_create_ubi_rootfs_target

used Testcases:

src/tc/linux/tc_workfd_create_ubi_rootfs.py.

used config variables:

tc_workfd_create_ubi_rootfs_path. tc_ubi_min_io_size. tc_ubi_leb_size. tc_ubi_max_leb_cnt. tc_workfd_create_ubi_rootfs_target.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_create_ubi_rootfs.py

src/tc/linux/tc_workfd_disconnect_with_kermit.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_connect_with_kermit.py
# disconnect from a kermit connection

used Testcases:

src/tc/linux/tc_workfd_connect_with_kermit.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_disconnect_with_kermit.py

src/tc/linux/tc_workfd_generate_random_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_generate_random_file.py
# simple create a random file tb.tc_workfd_generate_random_file_name
# with tb.tc_workfd_generate_random_file_length length.

used Testcases:

src/tc/linux/tc_workfd_generate_random_file.py.

used config variables:

tb_tc_workfd_generate_random_file_name. tb_tc_workfd_generate_random_file_length.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_generate_random_file.py

src/tc/linux/tc_workfd_get_linux_source.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_linux_source.py
# get Linux source tb.config.tc_lab_get_linux_source_git_repo with "git clone"
# and go into the source tree. Apply patches if needed with:
# tc_lab_apply_patches.py and tc_workfd_apply_local_patches.py

used Testcases:

src/tc/linux/tc_workfd_get_linux_source.py. src/tc/tc_lab_apply_patches.py. src/tc/linux/tc_workfd_apply_local_patches.py.

used config variables:

tc_lab_get_linux_source_git_repo.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_get_linux_source.py

src/tc/linux/tc_workfd_get_list_of_files_in_dir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_list_of_files_in_dir.py
# get a list of files from directory tb.tc_workfd_get_list_of_files_dir
# tb.config.tc_workfd_get_list_of_files_mask

used Testcases:

src/tc/linux/tc_workfd_get_list_of_files_in_dir.py.

used config variables:

tb_tc_workfd_get_list_of_files_dir. tc_workfd_get_list_of_files_mask.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_get_list_of_files_in_dir.py

src/tc/linux/tc_workfd_get_patchwork_number_list.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_patchwork_number_list.py
# get a list of patchworknumbers
# which are delegated to specific user
# tb.config.workfd_get_patchwork_number_user
# currently, this testcase reads "http://patchwork.ozlabs.org/project/uboot/list/"
# and filters out the patches, which are for
# tb.config.workfd_get_patchwork_number_user
# It would be better to login and look for the users
# ToDo list, but I did not find out, how to login ...
# ignore patches on blacklist:
# tb.config.tc_workfd_apply_patchwork_patches_blacklist
# also you can set the patch order with:
# tb.config.tc_workfd_get_patchwork_number_list_order

used Testcases:

src/tc/linux/tc_workfd_get_patchwork_number_list.py.

used config variables:

workfd_get_patchwork_number_user. workfd_get_patchwork_number_user. tc_workfd_apply_patchwork_patches_blacklist. tc_workfd_get_patchwork_number_list_order.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_get_patchwork_number_list.py

src/tc/linux/tc_workfd_get_uboot_config_hex.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_uboot_config_hex.py
# get a hex parameter from U-Boot configuration
# Input:
# tb.config.uboot_get_parameter_file_list: list of files, where TC searches
#   for the define
# tb.uboot_config_option: config option which get searched
#
# return value:
# TC ends True, if hex value found, else False
# tb.config_result: founded hex value, else 'undef'

used Testcases:

src/tc/linux/tc_workfd_get_uboot_config_hex.py.

used config variables:

tb_config_uboot_get_parameter_file_list:. tb_uboot_config_option:. tb_config_result:.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_get_uboot_config_hex.py

src/tc/linux/tc_workfd_get_uboot_config_string.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_uboot_config_string.py
# get a string parameter from U-Boot configuration
# Input:
# tb.config.uboot_get_parameter_file_list: list of files, where TC searches
#   for the define
# tb.uboot_config_option: config option which get searched
#
# return value:
# TC ends True, if string value found, else False
# tb.config_result: founded string value, else 'undef'

used Testcases:

src/tc/linux/tc_workfd_get_uboot_config_string.py.

used config variables:

tb_config_uboot_get_parameter_file_list:. tb_uboot_config_option:. tb_config_result:.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_get_uboot_config_string.py

src/tc/linux/tc_workfd_goto_lab_source_dir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_goto_lab_source_dir.py
# switch into lab PC source directory tb.config.tc_lab_source_dir
# set TBOT_BASEDIR to tb.config.tc_lab_source_dir

used Testcases:

src/tc/linux/tc_workfd_goto_lab_source_dir.py.

used config variables:

tc_lab_source_dir. tc_lab_source_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_goto_lab_source_dir.py

src/tc/linux/tc_workfd_goto_linux_code.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_goto_linux_code.py
# switch into linux source tb.config.tc_lab_source_dir + "/linux-" + tb.config.boardlabname
# set tb.config.linux_name to "linux-" + tb.config.boardlabname
# and tb.config.linux_fulldir_name to tb.config.tc_lab_source_dir + "/" + tb.config.linux_name
# and set $TBOT_BASEDIR_LINUX to tb.config.linux_fulldir_name

used Testcases:

src/tc/linux/tc_workfd_goto_linux_code.py.

used config variables:

tc_lab_source_dir. boardlabname. tb_config_linux_name. boardlabname. tb_config_linux_fulldir_name. tc_lab_source_dir. tb_config_linux_name. tb_config_linux_fulldir_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_goto_linux_code.py

src/tc/linux/tc_workfd_goto_tbot_workdir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_goto_tbot_workdir.py
# go into the tbot work dir tb.config.tc_workfd_work_dir
# if not exist, create it

used Testcases:

src/tc/linux/tc_workfd_goto_tbot_workdir.py.

used config variables:

tc_workfd_work_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_goto_tbot_workdir.py

src/tc/linux/tc_workfd_goto_uboot_code.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_goto_uboot_code.py
# switch into U-Boot source tb.config.tc_lab_source_dir + "/u-boot-" + tb.config.boardlabname
# set tb.config.uboot_name to "u-boot-" + tb.config.boardlabname
# and tb.config.uboot_fulldir_name to tb.config.tc_lab_source_dir + "/" + tb.config.uboot_name
# and set $TBOT_BASEDIR_UBOOT to tb.config.uboot_fulldir_name
#

used Testcases:

src/tc/linux/tc_workfd_goto_uboot_code.py.

used config variables:

tc_lab_source_dir. boardlabname. tb_config_uboot_name. boardlabname. tb_config_uboot_fulldir_name. tc_lab_source_dir. tb_config_uboot_name. tb_config_uboot_fulldir_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_goto_uboot_code.py

src/tc/linux/tc_workfd_grep.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_grep.py
# search string tb.tc_workfd_grep_string in file tb.tc_workfd_grep_file

used Testcases:

src/tc/linux/tc_workfd_grep.py.

used config variables:

tb_tc_workfd_grep_string. tb_tc_workfd_grep_file.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_grep.py

src/tc/linux/tc_workfd_hdparm.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_hdparm.py
# make a minimal hdparm check
# call hdparm -t tb.config.tc_workfd_hdparm_dev
# and check if read speed is greater than tb.config.tc_workfd_hdparm_min
# It is possible to add a PATH tb.config.tc_workfd_hdparm_path
# where hdparm is installed
# Testcase fails if readen speed is <= tb.config.tc_workfd_hdparm_min

used Testcases:

src/tc/linux/tc_workfd_hdparm.py.

used config variables:

tc_workfd_hdparm_dev. tc_workfd_hdparm_min. tc_workfd_hdparm_path. tc_workfd_hdparm_min.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_hdparm.py

src/tc/linux/tc_workfd_insmod.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_insmod.py
# insmod module tb.tc_workfd_insmod_module with
# module path tb.tc_workfd_insmod_mpath and
# tb.tc_workfd_insmod_module_path
# check if the strings in list tb.tc_workfd_insmod_module_checks
# come back when inserting the module.

used Testcases:

src/tc/linux/tc_workfd_insmod.py.

used config variables:

tb_tc_workfd_insmod_module. tb_tc_workfd_insmod_mpath. tb_tc_workfd_insmod_module_path. tb_tc_workfd_insmod_module_checks.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_insmod.py

src/tc/linux/tc_workfd_iperf.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_iperf.py
# make a minimal iperf check
# starts an iperf server on tb.tc_workfd_c_sr connection
#   with ip addr tb.tc_workfd_iperf_sip
# starts an iperf "slave" on tb.tc_workfd_c_sl
# waiting for the first result of iperf measure and
# check if the resulting speed is bigger then
# tb.tc_workfd_iperf_minval

used Testcases:

src/tc/linux/tc_workfd_iperf.py.

used config variables:

tb_tc_workfd_c_sr. tb_tc_workfd_iperf_sip. tb_tc_workfd_c_sl. tb_tc_workfd_iperf_minval.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_iperf.py

src/tc/linux/tc_workfd_linux_get_ifconfig.py

# start with
# tbot.py -s lab_denx -c cuby -t tc_workfd_linux_get_ifconfig.py
# read from tb.config.linux_get_ifconfig_dev the current
# ip addr and save it in tb.config.linux_get_ifconfig_ip
# broadcast and save it in tb.config.linux_get_ifconfig_broadcast
# mask and save it in tb.config.linux_get_ifconfig_mask

used Testcases:

src/tc/linux/tc_workfd_linux_get_ifconfig.py.

used config variables:

tb_config_linux_get_ifconfig_dev. tb_config_linux_get_ifconfig_ip. tb_config_linux_get_ifconfig_broadcast. tb_config_linux_get_ifconfig_mask.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_linux_get_ifconfig.py

src/tc/linux/tc_workfd_linux_get_uboot_env.py

# start with
# tbot.py -s lab_denx -c cuby -t tc_workfd_linux_get_uboot_env.py
# read U-Boot Environment variable from tb.config.linux_get_uboot_env_name
# from linux with fw_printenv, and save the value in tb.config.linux_get_uboot_env_value

used Testcases:

src/tc/linux/tc_workfd_linux_get_uboot_env.py.

used config variables:

tb_config_linux_get_uboot_env_name. tb_config_linux_get_uboot_env_value.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_linux_get_uboot_env.py

src/tc/linux/tc_workfd_linux_mkdir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_linux_mkdir.py
# check if the directory tb.config.tc_workfd_linux_mkdir_dir exists.
# if not, create it

used Testcases:

src/tc/linux/tc_workfd_linux_mkdir.py.

used config variables:

tb_config_tc_workfd_linux_mkdir_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_linux_mkdir.py

src/tc/linux/tc_workfd_md5sum.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_md5sum.py
# calculate md5sum of file tb.tc_workfd_md5sum_name , and store it in
# tb.tc_workfd_md5sum_sum

used Testcases:

src/tc/linux/tc_workfd_md5sum.py.

used config variables:

tb_tc_workfd_md5sum_name. tb_tc_workfd_md5sum_sum.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_md5sum.py

src/tc/linux/tc_workfd_rm_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_rm_file.py
# simple rm directory tb.config.tc_workfd_rm_file_name on the lab

used Testcases:

src/tc/linux/tc_workfd_rm_file.py.

used config variables:

tc_workfd_rm_file_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_rm_file.py

src/tc/linux/tc_workfd_rm_linux_code.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_rm_linux_code.py
# rm linux source tb.config.tc_lab_source_dir + '/linux-' + tb.config.boardlabname

used Testcases:

src/tc/linux/tc_workfd_rm_linux_code.py.

used config variables:

tc_lab_source_dir. boardlabname.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_rm_linux_code.py

src/tc/linux/tc_workfd_rm_uboot_code.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_rm_uboot_code.py
# rm U-Boot source tb.config.tc_lab_source_dir + '/u-boot-' + tb.config.boardlabname

used Testcases:

src/tc/linux/tc_workfd_rm_uboot_code.py.

used config variables:

tc_lab_source_dir. boardlabname.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_rm_uboot_code.py

src/tc/linux/tc_workfd_ssh.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_ssh.py
# login with ssh to tb.workfd_ssh_cmd and set new ssh prompt
# tb.config.workfd_ssh_cmd_prompt

used Testcases:

src/tc/linux/tc_workfd_ssh.py.

used config variables:

tb_workfd_ssh_cmd. workfd_ssh_cmd_prompt.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_ssh.py

src/tc/linux/tc_workfd_sudo_cp_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_sudo_cp_file.py
# simple copy file from tb.tc_workfd_cp_file_a to tb.tc_workfd_cp_file_b
# with sudo rights

used Testcases:

src/tc/linux/tc_workfd_sudo_cp_file.py.

used config variables:

tb_tc_workfd_cp_file_a. tb_tc_workfd_cp_file_b.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_sudo_cp_file.py

src/tc/linux/tc_workfd_switch_su.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_switch_su.py
# switch to superuser

used Testcases:

src/tc/linux/tc_workfd_switch_su.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/linux/tc_workfd_switch_su.py

src/tc/uboot/duts/tc_ub_basic.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_basic.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/02_UBootBasic.tc;h=5503cc6c716d2748732d30d63b0801e651fe1706;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_basic.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/02_UBootBasic.tc;h=5503cc6c716d2748732d30d63b0801e651fe1706;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_basic.py

src/tc/uboot/duts/tc_ub_bdinfo.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_bdinfo.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootBdinfo.tc;h=aa794a93ac5c8d2c3aea4aa5d02433ca2ee0f010;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_bdinfo.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootBdinfo.tc;h=aa794a93ac5c8d2c3aea4aa5d02433ca2ee0f010;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_bdinfo.py

src/tc/uboot/duts/tc_ub_boot.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_boot.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootBoot.tc;h=f679ff09cdb1e1393829c32dc5aa5cf299e9af07;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_boot.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootBoot.tc;h=f679ff09cdb1e1393829c32dc5aa5cf299e9af07;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_boot.py

src/tc/uboot/duts/tc_ub_coninfo.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_coninfo.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootConinfo.tc;h=2d028f74ba791343b8a70a97885eabe8b5944017;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_coninfo.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootConinfo.tc;h=2d028f74ba791343b8a70a97885eabe8b5944017;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_coninfo.py

src/tc/uboot/duts/tc_ub_date.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_date.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootDate.tc;h=03b7d53fd93bd61381db4095a4bff58b1d1efff7;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_date.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootDate.tc;h=03b7d53fd93bd61381db4095a4bff58b1d1efff7;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_date.py

src/tc/uboot/duts/tc_ub_diskboothelp.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_diskboothelp.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootIde.tc;h=03c2a05b75c6f9f6fc257fa84a2220f965567699;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_diskboothelp.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootIde.tc;h=03c2a05b75c6f9f6fc257fa84a2220f965567699;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_diskboothelp.py

src/tc/uboot/duts/tc_ub_download.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_download.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootCmdGroupDownload.tc;h=8e58d53add90b680ef7a1300894d2392f90d9824;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_download.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootCmdGroupDownload.tc;h=8e58d53add90b680ef7a1300894d2392f90d9824;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_download.py

src/tc/uboot/duts/tc_ub_dtt.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_dtt.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootDtt.tc;h=e420c7b45cd73b00465d69f969039222868f4cc7;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_dtt.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootDtt.tc;h=e420c7b45cd73b00465d69f969039222868f4cc7;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_dtt.py

src/tc/uboot/duts/tc_ub_environment.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_environment.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootEnvironment.tc;h=18d235f427e3efe9e6a04f870a3c5426d719ec58;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_environment.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootEnvironment.tc;h=18d235f427e3efe9e6a04f870a3c5426d719ec58;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_environment.py

src/tc/uboot/duts/tc_ub_flash.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_flash.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootFlashTest.tc;h=6eea72c8e9f3f4739a76ff59bb2e9a7c693aedd9;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_flash.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootFlashTest.tc;h=6eea72c8e9f3f4739a76ff59bb2e9a7c693aedd9;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_flash.py

src/tc/uboot/duts/tc_ub_flinfo.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_flinfo.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootFlinfo.tc;h=f5b728258250211d86dc9c6a9208639d8542b845;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_flinfo.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootFlinfo.tc;h=f5b728258250211d86dc9c6a9208639d8542b845;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_flinfo.py

src/tc/uboot/duts/tc_ub_i2c_help.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_i2c_help.py
# simple prints "help i2c" cmd

used Testcases:

src/tc/uboot/duts/tc_ub_i2c_help.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_i2c_help.py

src/tc/uboot/duts/tc_ub_ide.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ide.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootIde.tc;h=03c2a05b75c6f9f6fc257fa84a2220f965567699;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_ide.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/15_UBootIde.tc;h=03c2a05b75c6f9f6fc257fa84a2220f965567699;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_ide.py

src/tc/uboot/duts/tc_ub_memory.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_memory.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootMemory.tc;h=f5fb055499db17c322859215ab489cefb063ac47;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_memory.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootMemory.tc;h=f5fb055499db17c322859215ab489cefb063ac47;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_memory.py

src/tc/uboot/duts/tc_ub_run.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_run.py
# convert duts tests from:
# http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootRun.tc;h=44f8a0a0de256afdd95b5ec20d1d4570373aeb7d;hb=101ddd5dbd547d5046363358d560149d873b238a

used Testcases:

src/tc/uboot/duts/tc_ub_run.py.

links:

http://git.denx.de/?p=duts.git;a=blob;f=testsystems/dulg/testcases/10_UBootRun.tc;h=44f8a0a0de256afdd95b5ec20d1d4570373aeb7d;hb=101ddd5dbd547d5046363358d560149d873b238a

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_run.py

src/tc/uboot/duts/tc_ub_start_all_duts.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_start_all_duts.py
# start all DUTS tests

used Testcases:

src/tc/uboot/duts/tc_ub_start_all_duts.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/duts/tc_ub_start_all_duts.py

src/tc/uboot/tc_ub_aristainetos2_ubi.py

# start with
# tbot.py -s lab_denx -c aristainetos2 -t tc_ub_aristainetos2_ubi.py
# ubi testcases for the aristainetos2 board

used Testcases:

src/tc/uboot/tc_ub_aristainetos2_ubi.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_aristainetos2_ubi.py

src/tc/uboot/tc_ub_check_reg_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_check_reg_file.py
# checks if the default values in reg file tb.config.tc_ub_create_reg_file_name
# on the tbot host in tb.workdir have the same values, as the
# registers on the board
# format of the regfile:
# regaddr mask type defval
# ToDo: use the file from the lab host, not the tbot host

used Testcases:

src/tc/uboot/tc_ub_check_reg_file.py.

used config variables:

tb_config_tc_ub_create_reg_file_name. tb_workdir.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_check_reg_file.py

src/tc/uboot/tc_ub_check_version.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_check_version.py
# check if the current running U-Boot vers == tb.uboot_vers
# and SPL vers == tb.spl_vers

used Testcases:

src/tc/uboot/tc_ub_check_version.py.

used config variables:

tb_uboot_vers. tb_spl_vers.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_check_version.py

src/tc/uboot/tc_ub_cmp.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_cmp.py
# - compare 2 the contents of tb.tc_ub_cmp_addr1 with tb.tc_ub_cmp_addr2
# bytes tb.tc_ub_cmp_len length

used Testcases:

src/tc/uboot/tc_ub_cmp.py.

used config variables:

tb_tc_ub_cmp_addr1. tb_tc_ub_cmp_addr2. tb_tc_ub_cmp_len.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_cmp.py

src/tc/uboot/tc_ub_create_reg_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_create_reg_file.py
# creates a reg file tb.tc_ub_create_reg_file_name on the tbot host
# in tb.workdir
# read from tb.tc_ub_create_reg_file_start to tb.tc_ub_create_reg_file_stop
# and writes the results in the regfile tb.tc_ub_create_reg_file_name
# format of the regfile:
# regaddr mask type defval
# This reg file can be used as a default file, how the
# registers must be setup, check it with testcase
# tc_ub_check_reg_file.py
# ToDo: use the file from the lab host, not the tbot host

used Testcases:

src/tc/uboot/tc_ub_create_reg_file.py. src/tc/uboot/tc_ub_check_reg_file.py.

used config variables:

tb_tc_ub_create_reg_file_name. tb_workdir. tb_tc_ub_create_reg_file_start. tb_tc_ub_create_reg_file_stop. tb_tc_ub_create_reg_file_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_create_reg_file.py

src/tc/uboot/tc_ub_dfu.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_dfu.py
# test dfu
# - use dfu-util in tb.config.tc_ub_dfu_dfu_util_path
# - upload file tb.config.tc_ub_dfu_dfu_util_alt_setting to
#   tb.config.tc_ub_dfu_dfu_util_downloadfile
# - download it back to the board
# - upload it again
# - and compare the two files

used Testcases:

src/tc/uboot/tc_ub_dfu.py.

used config variables:

tc_ub_dfu_dfu_util_path. tc_ub_dfu_dfu_util_alt_setting. tb_config_tc_ub_dfu_dfu_util_downloadfile.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_dfu.py

src/tc/uboot/tc_ub_dfu_random.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_dfu_random.py
# test a U-Boot dfu alt setting tb.config.tc_ub_dfu_dfu_util_alt_setting
# Therefore write a random file with size tb.config.tc_ub_dfu_rand_size
# to it, reread it and compare it. TC fails if files differ
# (If readen file is longer, this is no error!)
#
# If dfu-util is not installed on the lab PC, set
# tb.config.tc_ub_dfu_dfu_util_ssh for connecting with ssh to a PC
# which have it installed, and a USB cable connected to the board.
# Set tb.config.tc_ub_dfu_dfu_util_path to the path of dfu-util, if
# you have a self compiled version of it.
# Set tb.config.tc_ub_dfu_rand_ubcmd for the executed command on
# U-Boot shell for getting into DFU mode

used Testcases:

src/tc/uboot/tc_ub_dfu_random.py.

used config variables:

tc_ub_dfu_dfu_util_alt_setting. tb_config_tc_ub_dfu_rand_size. tb_config_tc_ub_dfu_dfu_util_ssh. tc_ub_dfu_dfu_util_path. tb_config_tc_ub_dfu_rand_ubcmd.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_dfu_random.py

src/tc/uboot/tc_ub_dfu_random_default.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_dfu_random_default.py
# test a U-Boot dfu alt setting tb.config.tc_ub_dfu_dfu_util_alt_setting
# with reading / writing different sizes

used Testcases:

src/tc/uboot/tc_ub_dfu_random_default.py.

used config variables:

tc_ub_dfu_dfu_util_alt_setting.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_dfu_random_default.py

src/tc/uboot/tc_ub_get_filesize.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_get_filesize.py
# simple get the content of U-Boot env variable filesize
# and store it in tb.ub_filesize

used Testcases:

src/tc/uboot/tc_ub_get_filesize.py.

used config variables:

tb_ub_filesize.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_get_filesize.py

src/tc/uboot/tc_ub_get_version.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_get_version.py
# get the U-Boot and/or SPL version from a binary
# and save it in tb.uboot_vers or tb.spl_vers

used Testcases:

src/tc/uboot/tc_ub_get_version.py.

used config variables:

tb_uboot_vers. tb_spl_vers.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_get_version.py

src/tc/uboot/tc_ub_help.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_help.py
# - test U-Boots help cmd
#   may we add a list as parameter, so we can adapt it board
#   specific.

used Testcases:

src/tc/uboot/tc_ub_help.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_help.py

src/tc/uboot/tc_ub_load_board_env.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_load_board_env.py
# load U-Boot Environment for the board tb.config.tftpboardname
# tb.config.ub_load_board_env_addr and tb.config.ub_load_board_env_subdir

used Testcases:

src/tc/uboot/tc_ub_load_board_env.py.

used config variables:

tftpboardname. ub_load_board_env_addr. ub_load_board_env_subdir.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_load_board_env.py

src/tc/uboot/tc_ub_reset.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_reset.py
# simple U-Boot reset command.

used Testcases:

src/tc/uboot/tc_ub_reset.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_reset.py

src/tc/uboot/tc_ub_setenv.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_setenv.py
# set U-Boot Environmentvariable tb.config.setenv_name with value
# tb.config.setenv_value

used Testcases:

src/tc/uboot/tc_ub_setenv.py.

used config variables:

setenv_name. setenv_value.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_setenv.py

src/tc/uboot/tc_ub_test_py.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_test_py.py
# call test/py from u-boot source
# - disconnect console
# - call test/py
# - connect back to console
# test/py hookscript directory:
# tb.config.tc_ub_test_py_hook_script_path

used Testcases:

src/tc/uboot/tc_ub_test_py.py.

used config variables:

tc_ub_test_py_hook_script_path.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_test_py.py

src/tc/uboot/tc_ub_tftp_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_tftp_file.py
# load file tb.config.tc_ub_tftp_file_name to tb.config.tc_ub_tftp_file_addr
# with tftp command in uboot

used Testcases:

src/tc/uboot/tc_ub_tftp_file.py.

used config variables:

tb_config_tc_ub_tftp_file_name. tc_ub_tftp_file_addr.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_tftp_file.py

src/tc/uboot/tc_ub_ubi_check_volume.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_check_volume.py
# - checks if ubi volume tb.config.tc_ub_ubi_load_name exists

used Testcases:

src/tc/uboot/tc_ub_ubi_check_volume.py.

used config variables:

tc_ub_ubi_load_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_check_volume.py

src/tc/uboot/tc_ub_ubi_create_volume.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_create_volume.py
# - create ubi volume tb.config.tc_ub_ubi_create_vol_name with size
# tb.config.tc_ub_ubi_create_vol_sz

used Testcases:

src/tc/uboot/tc_ub_ubi_create_volume.py.

used config variables:

tc_ub_ubi_create_vol_name. tc_ub_ubi_create_vol_sz.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_create_volume.py

src/tc/uboot/tc_ub_ubi_erase.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_erase.py
# - erase an ubi device
#   execute U-Boot Env tbot_ubi_erase

used Testcases:

src/tc/uboot/tc_ub_ubi_erase.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_erase.py

src/tc/uboot/tc_ub_ubi_info.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_info.py
# - simple print ubi info

used Testcases:

src/tc/uboot/tc_ub_ubi_info.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_info.py

src/tc/uboot/tc_ub_ubi_prepare.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_prepare.py
# - ubi prepare
#   execute "ubi part" ith tb.config.tc_ub_ubi_prep_partname
#   if tb.config.tc_ub_ubi_prep_offset != 'none'
#   with offset tb.config.tc_ub_ubi_prep_offset

used Testcases:

src/tc/uboot/tc_ub_ubi_prepare.py.

used config variables:

tc_ub_ubi_prep_partname. tc_ub_ubi_prep_offset. tc_ub_ubi_prep_offset.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_prepare.py

src/tc/uboot/tc_ub_ubi_read.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_read.py
# - read ubi volume tb.config.tc_ub_ubi_prep_offset to tb.tc_ub_ubi_read_addr
# with len tb.tc_ub_ubi_read_len

used Testcases:

src/tc/uboot/tc_ub_ubi_read.py.

used config variables:

tc_ub_ubi_prep_offset. tb_tc_ub_ubi_read_addr. tb_tc_ub_ubi_read_len.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_read.py

src/tc/uboot/tc_ub_ubi_write.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubi_write.py
# - write image @ tb.config.tc_ub_ubi_write_addr to ubi volume
#   tb.config.tc_ub_ubi_write_vol_name with len tb.config.tc_ub_ubi_write_len

used Testcases:

src/tc/uboot/tc_ub_ubi_write.py.

used config variables:

tc_ub_ubi_write_addr. tc_ub_ubi_write_vol_name. tc_ub_ubi_write_len.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubi_write.py

src/tc/uboot/tc_ub_ubifs_ls.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubifs_ls.py
# - ls ubifs tb.config.tc_ub_ubifs_ls_dir

used Testcases:

src/tc/uboot/tc_ub_ubifs_ls.py.

used config variables:

tc_ub_ubifs_ls_dir.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubifs_ls.py

src/tc/uboot/tc_ub_ubifs_mount.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_ubifs_mount.py
# - mount ubifs tb.config.tc_ub_ubifs_volume_name

used Testcases:

src/tc/uboot/tc_ub_ubifs_mount.py.

used config variables:

tc_ub_ubifs_volume_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_ubifs_mount.py

src/tc/uboot/tc_ub_upd_spl.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_upd_spl.py
# update new spl to board
# steps:
# - load tbot u-boot env vars
# - execute "run tbot_upd_spl"
# - execute "run tbot_cmp_spl"
# - reset board
# - get u-boot

used Testcases:

src/tc/uboot/tc_ub_upd_spl.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_upd_spl.py

src/tc/uboot/tc_ub_upd_uboot.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_upd_uboot.py
# update new uboot to board
# steps:
# - load tbot u-boot env vars
# - execute "run tbot_upd_uboot"
# - execute "run tbot_cmp_uboot"
# - reset board
# - get u-boot

used Testcases:

src/tc/uboot/tc_ub_upd_uboot.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_ub_upd_uboot.py

src/tc/uboot/tc_uboot_check_kconfig.py

# start with
# python2.7 src/common/tbot.py -c config/tbot_uboot_kconfig_check.cfg -t tc_uboot_check_kconfig.py
# check for all boards, if a patch changes the u-boot binary
# If U-boot binary changed by the patch this testcase fails.
# use this testcase, if you for example move a config option
# into Kconfig. As we need reproducable builds, we need to
# patch U-Boot with tb.tc_uboot_check_kconfig_preparepatch
# - rm U-Boot code with tc_workfd_rm_uboot_code.py
# - get U-Boot code with tc_lab_get_uboot_source.py
# - set SOURCE_DATE_EPOCH=0 to get reproducible builds
# - get rid of local version ToDo: find a way to disable CONFIG_LOCALVERSION_AUTO
# - if tb.tc_uboot_check_kconfig_read_sumfile is != 'none'
#     read a list of boards and md5sums from the file in
#     tb.tc_uboot_check_kconfig_read_sumfile
#   else
#   - create a list of boards (all defconfigs)
#   - do for all boards:
#     - get architecture and set toolchain
#     - compile U-Boot and calculate md5sum
#       with tc_workfd_compile_uboot.py and tc_workfd_md5sum.py
#     - if tb.tc_uboot_check_kconfig_create_sumfile != 'none'
#       save the board md5sum lists in the file
#       tb.tc_uboot_check_kconfig_create_sumfile
#       you can use this now as a reference, so no need
#       to calculate always for all boards the md5sums
#       -> saves a lot of time!
#
# - apply patch(es) with tc_workfd_apply_patches.py
# - do for all boards:
#   - compile U-Boot again (patched version)
#   - calculate md5sum again
#   - calculate md5sums
#   - check if they are the same

used Testcases:

src/tc/uboot/tc_uboot_check_kconfig.py. src/tc/linux/tc_workfd_rm_uboot_code.py. src/tc/tc_lab_get_uboot_source.py. src/tc/tc_workfd_compile_uboot.py. src/tc/linux/tc_workfd_md5sum.py. src/tc/tc_workfd_apply_patches.py.

used config variables:

tb_tc_uboot_check_kconfig_preparepatch. tb_tc_uboot_check_kconfig_read_sumfile. tb_tc_uboot_check_kconfig_read_sumfile. tb_tc_uboot_check_kconfig_create_sumfile. tb_tc_uboot_check_kconfig_create_sumfile.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_uboot_check_kconfig.py

src/tc/uboot/tc_uboot_get_arch.py

# start with
# python2.7 src/common/tbot.py -c config/tbot_dxr2_uboot_kconfig_check.cfg -t tc_uboot_get_arch.py
# get architecture from u-boot config

used Testcases:

src/tc/uboot/tc_uboot_get_arch.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/uboot/tc_uboot_get_arch.py

src/tc/yocto/tc_workfd_bitbake.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_bitbake.py
# simple call bitbake with tb.config.tc_workfd_bitbake_args

used Testcases:

src/tc/yocto/tc_workfd_bitbake.py.

used config variables:

tb_config_tc_workfd_bitbake_args.

https://github.com/hsdenx/tbot/tree/master/src/tc/yocto/tc_workfd_bitbake.py

src/tc/yocto/tc_workfd_get_yocto_source.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_get_yocto_source.py
# get yocto source tb.config.tc_workfd_get_yocto_patches_git_repo with "git clone"
# check out branch:
# tb.config.tc_workfd_get_yocto_patches_git_branch
# check out commit ID:
# tb.config.tc_workfd_get_yocto_git_commit_id
# apply patches with "git am" from directory:
# tb.config.tc_workfd_get_yocto_clone_apply_patches_git_am_dir
# additionally define a reference for cloning:
# tb.config.tc_workfd_get_yocto_source_git_reference
# if a user/password for cloning is needed, define the user:
# tb.config.tc_workfd_get_yocto_source_git_repo_user
# and set the password in password.py
#
# get other layers defined in the list:
# tb.config.tc_workfd_get_yocto_source_layers
# one element contains the follwoing list element:
# ['git repo',
#  'git branch',
#  'git commit id',
#  'apply_patches_dir'
#  'apply_patches_git_am_dir',
#  'source_git_reference',
#  'source_git_repo_user',
#  'source_git_repo_name'
# ]
#
# at the end overwrite yocto configuration found in
# tb.config.tc_workfd_get_yocto_source_conf_dir
#
# clones into directory tb.config.yocto_name
# created with tc_workfd_goto_yocto_code.py
#

used Testcases:

src/tc/yocto/tc_workfd_get_yocto_source.py. src/tc/yocto/tc_workfd_goto_yocto_code.py.

used config variables:

tb_config_tc_workfd_get_yocto_patches_git_repo. tb_config_tc_workfd_get_yocto_patches_git_branch. tb_config_tc_workfd_get_yocto_git_commit_id. tb_config_tc_workfd_get_yocto_clone_apply_patches_git_am_dir. tb_config_tc_workfd_get_yocto_source_git_reference. tb_config_tc_workfd_get_yocto_source_git_repo_user. tc_workfd_get_yocto_source_layers. tb_config_tc_workfd_get_yocto_source_conf_dir. tb_config_yocto_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/yocto/tc_workfd_get_yocto_source.py

src/tc/yocto/tc_workfd_goto_yocto_code.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_goto_yocto_code.py
# switch into yocto source tb.config.tc_lab_source_dir + "/yocto-" + tb.config.boardlabname
# set tb.config.yocto_name to "yocto-" + tb.config.boardlabname
# and tb.config.yocto_fulldir_name to tb.config.tc_lab_source_dir + "/" + tb.config.yocto_name
# and set $TBOT_BASEDIR_YOCTO to tb.config.yocto_fulldir_name

used Testcases:

src/tc/yocto/tc_workfd_goto_yocto_code.py.

used config variables:

tc_lab_source_dir. boardlabname. tb_config_yocto_name. boardlabname. tb_config_yocto_fulldir_name. tc_lab_source_dir. tb_config_yocto_name. tb_config_yocto_fulldir_name.

https://github.com/hsdenx/tbot/tree/master/src/tc/yocto/tc_workfd_goto_yocto_code.py

src/tc/tc_board_git_bisect.py

# start with
# python2.7 src/common/tbot.py -c tbot_tqm5200s.cfg -t tc_board_git_bisect.py
# get a source code with tc tb.config.board_git_bisect_get_source_tc
# and start a "git bisect" session
# current commit is bad
# good commit id is defined through tb.config.board_git_bisect_good_commit
# tc for testing good or bad is tb.config.board_git_bisect_call_tc
# if you have some local patches, which needs to be applied
# each git bisect step, set tb.config.board_git_bisect_patches

used Testcases:

src/tc/tc_board_git_bisect.py.

used config variables:

board_git_bisect_get_source_tc. board_git_bisect_good_commit. board_git_bisect_call_tc. board_git_bisect_patches.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_board_git_bisect.py

src/tc/tc_lab_apply_patches.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_apply_patches.py
# apply patches to source

used Testcases:

src/tc/tc_lab_apply_patches.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_apply_patches.py

src/tc/tc_lab_compile_uboot.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_compile_uboot.py
# compile u-boot

used Testcases:

src/tc/tc_lab_compile_uboot.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_compile_uboot.py

src/tc/tc_lab_cp_file.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_cp_file.py
# simple copy  file from arg.get('s')
# to arg.get('t') on the channel arg.get('ch')

used Testcases:

src/tc/tc_lab_cp_file.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_cp_file.py

src/tc/tc_lab_get_uboot_source.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_get_uboot_source.py
# get U-Boot source
# and go into the source tree

used Testcases:

src/tc/tc_lab_get_uboot_source.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_get_uboot_source.py

src/tc/tc_lab_poweroff.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_poweroff.py
# simple power off the board

used Testcases:

src/tc/tc_lab_poweroff.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_poweroff.py

src/tc/tc_lab_poweron.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_poweron.py
# simple power on the board

used Testcases:

src/tc/tc_lab_poweron.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_poweron.py

src/tc/tc_lab_rm_dir.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_rm_dir.py
# simple rm a directory on the lab

used Testcases:

src/tc/tc_lab_rm_dir.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_rm_dir.py

src/tc/tc_lab_set_toolchain.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_set_toolchain.py
# set the toolchain

used Testcases:

src/tc/tc_lab_set_toolchain.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_lab_set_toolchain.py

src/tc/tc_ub_boot_linux.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_ub_boot_linux.py
# - load u-boot environment with testcase "tc_ub_load_board_env.py"
# - execute u-boot cmd tb.config.ub_boot_linux_cmd

used Testcases:

src/tc/tc_ub_boot_linux.py.

used config variables:

ub_boot_linux_cmd.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_ub_boot_linux.py

src/tc/tc_workfd_apply_patches.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_lab_apply_patches.py
# apply patches to source

used Testcases:

src/tc/tc_lab_apply_patches.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_workfd_apply_patches.py

src/tc/tc_workfd_compile_uboot.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_compile_uboot.py
# compile u-boot

used Testcases:

src/tc/tc_workfd_compile_uboot.py.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_workfd_compile_uboot.py

src/tc/tc_workfd_git_clone_source.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_git_clone_source.py
# get source from git repo tb.config.tc_lab_git_clone_source_git_repo with "git clone"
# and go into the source tree.
# check out branch tb.config.tc_lab_git_clone_source_git_branch
# and Apply patches if needed with:
# tc_lab_apply_patches.py and patches from directory
# tb.config.tc_lab_git_clone_apply_patches_dir
# use as reference tb.config.tc_lab_git_clone_source_git_reference
# if != 'none'
# You can give the repo a name with setting
# tb.config.tc_lab_git_clone_source_git_repo_name
# != 'none'
# If you need a user/password for clining, you can define
# the username through:
# tb.config.tc_lab_git_clone_source_git_repo_user
# define the password for this in password.py
# boardname in password.py is used as tb.config.tc_lab_git_clone_source_git_repo

used Testcases:

src/tc/tc_workfd_git_clone_source.py. src/tc/tc_lab_apply_patches.py.

used config variables:

tc_lab_git_clone_source_git_repo. tc_lab_git_clone_source_git_branch. tc_lab_git_clone_apply_patches_dir. tc_lab_git_clone_source_git_reference. tc_lab_git_clone_source_git_repo_name. tc_lab_git_clone_source_git_repo_user. tc_lab_git_clone_source_git_repo.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_workfd_git_clone_source.py

src/tc/tc_workfd_set_toolchain.py

# start with
# python2.7 src/common/tbot.py -c tbot.cfg -t tc_workfd_set_toolchain.py
# set the toolchain, dependend on the architecture setting in
# tb.config.tc_workfd_set_toolchain_arch
# supported toolchains defined in
# tb.config.tc_workfd_set_toolchain_t_p and tb.config.tc_workfd_set_toolchain_cr_co

used Testcases:

src/tc/tc_workfd_set_toolchain.py.

used config variables:

tb_config_tc_workfd_set_toolchain_arch. tb_config_tc_workfd_set_toolchain_t_p. tb_config_tc_workfd_set_toolchain_cr_co.

https://github.com/hsdenx/tbot/tree/master/src/tc/tc_workfd_set_toolchain.py