Skip to content

Commit b6d3003

Browse files
Steven Rostedtrostedt
authored andcommitted
ktest: Add the snowball.conf example config
I used the snowball.conf in a live demo that demonstrated how to use ktest.pl with a snowball ARM board. I've been asked to included that config in the ktest repository. Here it is. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 2e10952 commit b6d3003

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This example was used to boot the snowball ARM board.
2+
# See http://people.redhat.com/srostedt/ktest-embedded-2012/
3+
4+
# PWD is a ktest.pl variable that will result in the process working
5+
# directory that ktest.pl is executed in.
6+
7+
# THIS_DIR is automatically assigned the PWD of the path that generated
8+
# the config file. It is best to use this variable when assigning other
9+
# directory paths within this directory. This allows you to easily
10+
# move the test cases to other locations or to other machines.
11+
#
12+
THIS_DIR := /home/rostedt/work/demo/ktest-embed
13+
LOG_FILE = ${OUTPUT_DIR}/snowball.log
14+
CLEAR_LOG = 1
15+
MAKE_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+
ADD_CONFIG = ${THIS_DIR}/addconfig
17+
18+
SCP_TO_TARGET = echo "don't do scp"
19+
20+
TFTPBOOT := /var/lib/tftpboot
21+
TFTPDEF := ${TFTPBOOT}/snowball-default
22+
TFTPTEST := ${OUTPUT_DIR}/${BUILD_TARGET}
23+
24+
SWITCH_TO_GOOD = cp ${TFTPDEF} ${TARGET_IMAGE}
25+
SWITCH_TO_TEST = cp ${TFTPTEST} ${TARGET_IMAGE}
26+
27+
# Define each test with TEST_START
28+
# The config options below it will override the defaults
29+
TEST_START SKIP
30+
TEST_TYPE = boot
31+
BUILD_TYPE = u8500_defconfig
32+
BUILD_NOCLEAN = 1
33+
34+
TEST_START
35+
TEST_TYPE = make_min_config
36+
OUTPUT_MIN_CONFIG = ${THIS_DIR}/config.newmin
37+
START_MIN_CONFIG = ${THIS_DIR}/config.orig
38+
IGNORE_CONFIG = ${THIS_DIR}/config.ignore
39+
BUILD_NOCLEAN = 1
40+
41+
42+
DEFAULTS
43+
LOCALVERSION = -test
44+
POWER_CYCLE = echo use the thumb luke; read a
45+
CONSOLE = cat ${THIS_DIR}/snowball-cat
46+
REBOOT_TYPE = script
47+
SSH_USER = root
48+
BUILD_OPTIONS = -j8 uImage
49+
BUILD_DIR = ${THIS_DIR}/linux.git
50+
OUTPUT_DIR = ${THIS_DIR}/snowball-build
51+
MACHINE = snowball
52+
TARGET_IMAGE = /var/lib/tftpboot/snowball-image
53+
BUILD_TARGET = arch/arm/boot/uImage

0 commit comments

Comments
 (0)