blob: 546014a6bb0322f1be852dc8d1580885da245721 [file] [log] [blame]
Steven Rostedta75fece2010-11-02 14:58:27 -04001#
2# Config file for autotest.pl
3#
4# Note, all paths must be absolute
5#
6
7# Almost all options may be overwritten per test run, by appending
8# a [x] to the config. For example, to change the test type for
9# the third iteration of tests, you can specify:
10# (1 is for the first test, 2 for the second, and so on)
11#
12# TEST_TYPE[3] = build
13#
14# The options that can not be changed like this are:
15# NUM_TESTS
16# LOG_FILE
17# CLEAR_LOG
18# POWEROFF_ON_SUCCESS
19# REBOOT_ON_SUCCESS
20#
21
22#### Mandatory Config Options ####
23
24# The machine hostname that you will test
25#MACHINE = target
26
27# The box is expected to have ssh on normal bootup, provide the user
28# (most likely root, since you need privileged operations)
29#SSH_USER = root
30
31# The directory that contains the Linux source code
32#BUILD_DIR = /home/test/linux.git
33
34# The directory that the objects will be built
35# (can not be same as BUILD_DIR)
36#OUTPUT_DIR = /home/test/build/target
37
38# The location of the compiled file to copy to the target
39# (relative to OUTPUT_DIR)
40#BUILD_TARGET = arch/x86/boot/bzImage
41
42# The place to put your image on the test machine
43#TARGET_IMAGE = /boot/vmlinuz-test
44
45# A script or command to reboot the box
46# Here is a digital loggers power switch example
47#POWER_CYCLE = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=CCL'
48# Here is an example to reboot a virtual box on the current host
49# with the name "Guest".
50#POWER_CYCLE = virsh list | grep '\<Guest\>' | awk '{printf ("%d", $1)}' | xargs virsh destroy; sleep 5; virsh start Guest
51
52# The script or command that reads the console
53# If you use ttywatch server, something like the following would work.
54#CONSOLE = nc -d localhost 3001
55# For a virtual machine with guest name "Guest".
56#CONSOLE = virsh console `virsh list | grep '\<Guest\>' | awk '{printf ("%d", $1)}'`
57
58# Required version ending to differentiate the test
59# from other linux builds on the system.
60#LOCALVERSION = -test
61
62# The grub title name for the test kernel to boot
63# (Only mandatory if REBOOT_TYPE = grub)
64#
65# For example, if in the /boot/grub/menu.lst the test kernel title has:
66# title Test Kernel
67#GRUB_MENU = Test Kernel
68
69# A script to reboot the target into the test kernel
70# (Only mandatory if REBOOT_TYPE = script)
71#REBOOT_SCRIPT =
72
73#### Optional Config Options (all have defaults) ####
74
75# The number of tests to run (default 5)
76#NUM_TESTS = 5
77
78# The default test type (default test)
79# The test types may be:
80# build - only build the kernel, do nothing else
81# boot - build and boot the kernel
82# test - build, boot and if TEST is set, run the test script
83# bisect - Perform a bisect on the kernel (see BISECT_TYPE below)
84# patchcheck - Do a test on a series of commits in git (see PATCHCHECK below)
85#TEST_TYPE = test
86
87# The build type is any make config type or a command.
88# (default randconfig)
89# nobuild - skip the clean and build step
90#BUILD_TYPE = randconfig
91
92# The make command (default make)
93# If you are building a 32bit x86 on a 64 bit host
94#MAKE_CMD = CC=i386-gcc AS=i386-as make ARCH=i386
95
Steven Rostedt8b37ca82010-11-02 14:58:33 -040096# If you need an initrd, you can add a script or code here to install
97# it. The environment variable KERNEL_VERSION will be set to the
98# kernel version that is used.
99#POST_INSTALL = ssh user@target /sbin/mkinitrd --allow-missing -f /boot/initramfs-test.img $KERNEL_VERSION
100
Steven Rostedta75fece2010-11-02 14:58:27 -0400101# Way to reboot the box to the test kernel.
102# Only valid options so far are "grub" and "script"
103# (default grub)
104# If you specify grub, it will assume grub version 1
105# and will search in /boot/grub/menu.lst for the title $GRUB_MENU
106# and select that target to reboot to the kernel. If this is not
107# your setup, then specify "script" and have a command or script
108# specified in REBOOT_SCRIPT to boot to the target.
109#REBOOT_TYPE = grub
110
111# Line to define success in output. (default "login:")
112# This is what the line contains, not the entire line. If you need
113# the entire line to match, then use regural expression syntax like
114# ^MyBox Login:$
115#SUCCESS_LINE = login:
116
117# As the test reads the console, after it hits the SUCCESS_LINE
118# the time it waits for the monitor to settle down between reads
119# can usually be lowered.
120# (in seconds) (default 1)
121#BOOTED_TIMEOUT = 1
122
123# The timeout in seconds when we consider the box hung after
124# the console stop producing output.
125# (default 120)
126#TIMEOUT = 120
127
128# The location on the host where to write temp files
129# (default /tmp/autotest)
130#TMP_DIR = /tmp/autotest
131
132# In between tests, a reboot of the box may occur, and this
133# is the time to wait for the console after it stops producing
134# output. Some machines may not produce a large lag on reboot
135# so this should accommodate it.
136# (default 60)
137#SLEEP_TIME = 60
138
139# The time in between bisects to sleep (in seconds)
140# Can be less than SLEEP_TIME since bisects do more work
141# in between boots. (default 60)
142#BISECT_SLEEP_TIME = 60
143
144# Build without doing a make mrproper, or removing .config
145# (default 0)
146#BUILD_NOCLEAN = 0
147
148# Reboot the target box on error (default 0)
149#REBOOT_ON_ERROR = 0
150
151# Power off the target on error (ignored if REBOOT_ON_ERROR is set)
152# (default 0)
153#POWEROFF_ON_ERROR = 0
154
155# Power off the target after all tests have completed successfully
156# (default 0)
157#POWEROFF_ON_SUCCESS = 0
158
159# Reboot the target after all test completed successfully (default 1)
160# (ignored if POWEROFF_ON_SUCCESS is set)
161#REBOOT_ON_SUCCESS = 1
162
Steven Rostedt576f6272010-11-02 14:58:38 -0400163# In case there's isses with rebooting, you can specify this
164# to always powercycle after this amount of time after calling
165# reboot.
166# Note, POWERCYCLE_AFTER_REBOOT = 0 does NOT disable it. It just
167# makes it powercycle immediately after rebooting. Do not define
168# it if you do not want it.
169# (default undefined)
170#POWERCYCLE_AFTER_REBOOT = 5
171
172# In case there's isses with halting, you can specify this
173# to always poweroff after this amount of time after calling
174# halt.
175# Note, POWEROFF_AFTER_HALT = 0 does NOT disable it. It just
176# makes it poweroff immediately after halting. Do not define
177# it if you do not want it.
178# (default undefined)
179#POWEROFF_AFTER_HALT = 20
180
Steven Rostedta75fece2010-11-02 14:58:27 -0400181# Stop testing if a build fails. If set, the script will end if
182# a failure is detected, otherwise it will save off the .config,
183# dmesg and bootlog in a directory called
184# MACHINE-TEST_TYPE_BUILD_TYPE-fail-yyyymmddhhmmss
185# if the STORE_FAILURES directory is set.
186# (default 1)
187# Note, even if this is set to zero, there are some errors that still
188# stop the tests.
189#DIE_ON_FAILURE = 1
190
191# Directory to store failure directories on failure. If this is not
192# set, DIE_ON_FAILURE=0 will not save off the .config, dmesg and
193# bootlog.
194#STORE_FAILURES = /home/test/failures
195
196# A script or command to power off the box (default undef)
197# Needed for POWEROFF_ON_ERROR and SUCCESS
198# Example for digital loggers power switch:
199#POWER_OFF = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=OFF'
200# Example for a virtual guest call "Guest".
201#POWER_OFF = virsh list | grep '\<GuestF12\>' | awk '{printf ("%d", $1)}' | xargs virsh destroy
202
203# Any build options for the make (default "")
204#BUILD_OPTIONS = -j20
205
206# Optional log file to write the status (recommended)
207# (default undef)
208#LOG_FILE = /home/test/logfiles/target.log
209
210# Remove old logfile if it exists before starting all tests.
211# (default 0)
212#CLEAR_LOG = 0
213
214# Test to run if there is a successful boot and TEST_TYPE is test.
215# Must exit with 0 on success and non zero on error
216# default (undef)
217#TEST = ssh user@machine /root/run_test
218#TEST[1] = ssh root@mxtest /root/run_test
219
220# The min config that is needed to build for the machine
221# A nice way to get this to work, is to do a "lsmod > mymods" on the target
222# copy it to the build server, and then run "make LSMOD=mymods localyesconfig".
223# Then copy all the options that are set: "grep '^CONFIG' > /home/test/config-min"
224#
225# You might want to set:
226# CONFIG_CMDLINE="<your options here>"
227# randconfig may set the above and override your real command
228# line options.
229# (default undef)
230#MIN_CONFIG = /home/test/config-min
231
232# Sometimes there's options that just break the boot and
233# you do not care about. Here are a few:
234# # CONFIG_STAGING is not set
235# Staging drivers are horrible, and can break the build.
236# # CONFIG_SCSI_DEBUG is not set
237# SCSI_DEBUG may change your root partition
238# # CONFIG_KGDB_SERIAL_CONSOLE is not set
239# KGDB may cause oops waiting for a connection that's not there.
240# This option points to the file containing config options that will be prepended
241# to the MIN_CONFIG (or be the MIN_CONFIG if it is not set)
242# before running it through randconfig
243# (default undef)
244#ADD_CONFIG = /home/test/config-broken
245
246#### Per test run options ####
247# These are options are per build only. The only exist with the [x]
248# syntax, and there is no general option.
249#
250# All are optional and undef by default
251#
252# CHECKOUT[x] = branch
253#
254# If the BUILD_DIR is a git repository, then you can set this option
255# to checkout the given branch before running the TEST. If you
256# specify this for the first run, that branch will be used for
257# all preceding tests until a new CHECKOUT[x] is set.
258#
259# For TEST_TYPE[x] = patchcheck
260#
261# This expects the BUILD_DIR to be a git repository, and
262# will checkout the PATCHCHECK_START[x].
263#
264# PATCHCHECK_START[x] is required and is the first patch to
265# test (the SHA1 of the commit).
266#
267# PATCHCHECK_END[x] is the last patch to check (default HEAD)
268#
269# PATCHCHECK_TYPE[x] is required and is the type of test to run:
270# build, boot, test.
271#
272# Note, the build test will look for warnings, if a warning occurred
273# in a file that a commit touches, the build will fail.
274#
275# If BUILD_NOCLEAN is set, then make mrproper will not be run on
276# any of the builds, just like all other TEST_TYPE tests. But
277# what makes patchcheck different from the other tests, is if
278# BUILD_NOCLEAN is not set, only the first and last patch run
279# make mrproper. This helps speed up the test.
280#
281# Example:
282# TEST_TYPE[1] = patchcheck
283# CHECKOUT[1] = mybranch
284# PATCHCHECK_TYPE[1] = boot
285# PATCHCHECK_START[1] = 747e94ae3d1b4c9bf5380e569f614eb9040b79e7
286# PATCHCHEKC_END[1] = b8b2663bd7c9da04ac804659b9f617c199d0252c
287#
288#
289# For TEST_TYPE[x] = bisect
290#
291# You can specify a git bisect if the BUILD_DIR is a git repository.
292# The MIN_CONFIG will be used for all builds of the bisect. The build type
293# used for bisecting is oldconfig.
294#
295# BISECT_TYPE[x] is the type of test to perform:
296# build - bad fails to build
297# boot - bad builds but fails to boot
298# test - bad boots but fails a test
299#
300# BISECT_GOOD[x] is the commit (SHA1) to label as good
301# BISECT_BAD[x] is the commit to label as bad
302#
303# The above three options are required for a bisect operation.
304#
305# BISECT_REPLAY[x] = /path/to/replay/file (optional, default undefined)
306#
307# If an operation failed in the bisect that was not expected to
308# fail. Then the test ends. The state of the BUILD_DIR will be
309# left off at where the failur occurred. You can examine the
310# reason for the failure, and perhaps even find a git commit
311# that would work to continue with. You can run:
312#
313# git bisect log > /path/to/replay/file
314#
315# and if BISECT_REPLAY[x] is set, the test will run git bisect replay
316# before continuing with the bisect.
317#
318# BISECT_START[x] = commit (optional, default undefined)
319#
320# As with BISECT_REPLAY[x], if the test failed on a commit that
321# just happen to have a bad commit in the middle of the bisect,
322# and you need to skip it. If BISECT_START[x] is defined, it
323# will checkout that commit before continuing with the bisect.
324#
325# Note, BISECT_REPLAY[x] is executed before BISECT_START[x].
326#
327# BISECT_REVERSE[x] = 1 (optional, default 0)
328#
329# In those strange instances where it was broken forever
330# and you are trying to find where it started to work!
331# Set BISECT_GOOD[x] to the commit that was last known to fail
332# Set BISECT_BAD[x] to the commit that is known where it started
333# to work. With BISECT_REVERSE[x] = 1, The test will consider
334# failures as good, and success as bad.
335#
336# BISECT_CHECK[x] = 1 (optional, default 0)
337#
338# Just to be sure the good is good and bad is bad, setting
339# BISECT_CHECK[x] to 1 will start the bisect by first checking
340# out BISECT_BAD[x] and makes sure it fails, then it will check
341# out BISECT_GOOD[x] and makes sure it succeeds before starting
342# the bisect (it works for BISECT_REVERSE[x] too).
343#
344# You can limit the test to just check BISECT_GOOD[x] or
345# BISECT_BAD[x] with BISECT_CHECK[x] = good or
346# BISECT_CHECK[x] = bad, respectively.
347#
348# Example:
349# TEST_TYPE[1] = bisect
350# BISECT_GOOD[1] = v2.6.36
351# BISECT_BAD[1] = b5153163ed580e00c67bdfecb02b2e3843817b3e
352# BISECT_TYPE[1] = build
353# MIN_CONFIG[1] = /home/test/config-bisect