xref: /openbmc/linux/tools/testing/ktest/examples/snowball.conf (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*b6d30036SSteven Rostedt# This example was used to boot the snowball ARM board.
2*b6d30036SSteven Rostedt# See http://people.redhat.com/srostedt/ktest-embedded-2012/
3*b6d30036SSteven Rostedt
4*b6d30036SSteven Rostedt# PWD is a ktest.pl variable that will result in the process working
5*b6d30036SSteven Rostedt# directory that ktest.pl is executed in.
6*b6d30036SSteven Rostedt
7*b6d30036SSteven Rostedt# THIS_DIR is automatically assigned the PWD of the path that generated
8*b6d30036SSteven Rostedt# the config file. It is best to use this variable when assigning other
9*b6d30036SSteven Rostedt# directory paths within this directory. This allows you to easily
10*b6d30036SSteven Rostedt# move the test cases to other locations or to other machines.
11*b6d30036SSteven Rostedt#
12*b6d30036SSteven RostedtTHIS_DIR := /home/rostedt/work/demo/ktest-embed
13*b6d30036SSteven RostedtLOG_FILE = ${OUTPUT_DIR}/snowball.log
14*b6d30036SSteven RostedtCLEAR_LOG = 1
15*b6d30036SSteven RostedtMAKE_CMD = PATH=/usr/local/gcc-4.5.2-nolibc/arm-unknown-linux-gnueabi/bin:$PATH CROSS_COMPILE=arm-unknown-linux-gnueabi- make ARCH=arm
16*b6d30036SSteven RostedtADD_CONFIG = ${THIS_DIR}/addconfig
17*b6d30036SSteven Rostedt
18*b6d30036SSteven RostedtSCP_TO_TARGET = echo "don't do scp"
19*b6d30036SSteven Rostedt
20*b6d30036SSteven RostedtTFTPBOOT := /var/lib/tftpboot
21*b6d30036SSteven RostedtTFTPDEF := ${TFTPBOOT}/snowball-default
22*b6d30036SSteven RostedtTFTPTEST := ${OUTPUT_DIR}/${BUILD_TARGET}
23*b6d30036SSteven Rostedt
24*b6d30036SSteven RostedtSWITCH_TO_GOOD = cp ${TFTPDEF} ${TARGET_IMAGE}
25*b6d30036SSteven RostedtSWITCH_TO_TEST = cp ${TFTPTEST} ${TARGET_IMAGE}
26*b6d30036SSteven Rostedt
27*b6d30036SSteven Rostedt# Define each test with TEST_START
28*b6d30036SSteven Rostedt# The config options below it will override the defaults
29*b6d30036SSteven RostedtTEST_START SKIP
30*b6d30036SSteven RostedtTEST_TYPE = boot
31*b6d30036SSteven RostedtBUILD_TYPE = u8500_defconfig
32*b6d30036SSteven RostedtBUILD_NOCLEAN = 1
33*b6d30036SSteven Rostedt
34*b6d30036SSteven RostedtTEST_START
35*b6d30036SSteven RostedtTEST_TYPE = make_min_config
36*b6d30036SSteven RostedtOUTPUT_MIN_CONFIG = ${THIS_DIR}/config.newmin
37*b6d30036SSteven RostedtSTART_MIN_CONFIG = ${THIS_DIR}/config.orig
38*b6d30036SSteven RostedtIGNORE_CONFIG = ${THIS_DIR}/config.ignore
39*b6d30036SSteven RostedtBUILD_NOCLEAN = 1
40*b6d30036SSteven Rostedt
41*b6d30036SSteven Rostedt
42*b6d30036SSteven RostedtDEFAULTS
43*b6d30036SSteven RostedtLOCALVERSION = -test
44*b6d30036SSteven RostedtPOWER_CYCLE = echo use the thumb luke; read a
45*b6d30036SSteven RostedtCONSOLE = cat ${THIS_DIR}/snowball-cat
46*b6d30036SSteven RostedtREBOOT_TYPE = script
47*b6d30036SSteven RostedtSSH_USER = root
48*b6d30036SSteven RostedtBUILD_OPTIONS = -j8 uImage
49*b6d30036SSteven RostedtBUILD_DIR = ${THIS_DIR}/linux.git
50*b6d30036SSteven RostedtOUTPUT_DIR = ${THIS_DIR}/snowball-build
51*b6d30036SSteven RostedtMACHINE = snowball
52*b6d30036SSteven RostedtTARGET_IMAGE = /var/lib/tftpboot/snowball-image
53*b6d30036SSteven RostedtBUILD_TARGET = arch/arm/boot/uImage
54