<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/testing/ktest/sample.conf, branch v3.0.62</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/tools/testing/ktest/sample.conf?h=v3.0.62</id>
<link rel='self' href='https://git.amat.us/linux/atom/tools/testing/ktest/sample.conf?h=v3.0.62'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-05-20T19:48:59Z</updated>
<entry>
<title>ktest: Allow options to be used by other options</title>
<updated>2011-05-20T19:48:59Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-05-20T19:48:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2a62512bceb44ad45f78aa7ca0e9cfaee9eae46f'/>
<id>urn:sha1:2a62512bceb44ad45f78aa7ca0e9cfaee9eae46f</id>
<content type='text'>
There are cases where one ktest option may be used within another
ktest option. Allow them to be reused just like config variables
but there are evaluated at time of test not config processing time.

Thus having something like:

MAKE_CMD = make ARCH=${ARCH}

TEST_START
ARCH = powerpc

TEST_START
ARCH = arm

Will have the arch defined for each test iteration.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Create variables for the ktest config files</title>
<updated>2011-05-20T19:26:26Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-05-20T17:36:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=77d942ceacbad02d8498ac72ed8d634634057aec'/>
<id>urn:sha1:77d942ceacbad02d8498ac72ed8d634634057aec</id>
<content type='text'>
I found that I constantly reuse information for each test case.
It would be nice to just define a variable to reuse.

For example I may have:

TEST_START
[...]
TEST = ssh root@mybox /path/to/my/script

TEST_START
[...]
TEST = ssh root@mybox /path/to/my/script

[etc]

The issue is, I may wont to change that script or one of the other
fields. Then I need to update each line individually.

With the addition of config variables (variables only used during parsing
the config) we can simplify the config files. These variables can
also be defined multiple times and each time the new value will
overwrite the old value.

The convention to use a config variable over a ktest option is to use :=
instead of =.

Now we could do:

USER := root
TARGET := mybox
TEST_SCRIPT := /path/to/my/script
TEST_CASE := ${USER}@${TARGET} ${TEST_SCRIPT}

TEST_START
[...]
TEST = ${TEST_CASE}

TEST_START
[...]
TEST = ${TEST_CASE}

[etc]

Now we just need to update the variables at the top.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Reboot after each patchcheck run</title>
<updated>2011-05-20T13:21:02Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-05-20T13:18:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=27d934b28752b860cba6c0d77ea4598861d80998'/>
<id>urn:sha1:27d934b28752b860cba6c0d77ea4598861d80998</id>
<content type='text'>
The patches being checked may not leave the kernel in a state
that the next run will allow the new kernel to be copied to the
machine. Reboot to a known good kernel before continuing to the
next kernel to test.

Added option PATCHCHECK_SLEEP_TIME for the max time to sleep between
patchcheck reboots.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Add STOP_TEST_AFTER to stop the test after a period of time</title>
<updated>2011-03-08T14:52:59Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-03-08T14:47:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2d01b26a1b14ab248f850d858f2ff3de3ead6d33'/>
<id>urn:sha1:2d01b26a1b14ab248f850d858f2ff3de3ead6d33</id>
<content type='text'>
Currently, if a test causes constant output but never reaches a
boot prompt, or crashes, the test will never stop. Add STOP_TEST_AFTER
to create a variable that will stop (and fail) the test after it has run
for this amount of time. The default is 10 minutes. Setting this
variable to -1 will disable it.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Add BISECT_FILES to run git bisect on paths</title>
<updated>2011-03-08T14:52:58Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-03-08T14:38:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3410f6fd5e3e96de4b557a62b7a2fbf19d74b1cd'/>
<id>urn:sha1:3410f6fd5e3e96de4b557a62b7a2fbf19d74b1cd</id>
<content type='text'>
Add the config option BISECT_FILES that allows the user to
specify what path in the kernel to run the git bisect on.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Add BISECT_SKIP</title>
<updated>2011-03-08T14:52:58Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-03-08T14:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c23dca7cd28eb1bf90053ce4ba30d65d22d2a81e'/>
<id>urn:sha1:c23dca7cd28eb1bf90053ce4ba30d65d22d2a81e</id>
<content type='text'>
If a during a git bisect, ktest fails on something other than
what it is testing (if BISECT_TYPE is test but it fails on build),
if BISECT_SKIP is set, then it will do a "git bisect skip" instead
of just failing the bisect and letting the user find a good commit
to test.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Add manual bisect</title>
<updated>2011-03-08T14:52:58Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-03-08T14:22:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c960bb9f59c0ed2aded535222cfe461ec6c22c95'/>
<id>urn:sha1:c960bb9f59c0ed2aded535222cfe461ec6c22c95</id>
<content type='text'>
For both git bisect and config bisect, if BISECT_MANUAL is set to 1,
then bisect will stop between iterations and ask the user for the
result. The actual result is ignored. This makes it possible to
use ktest.pl for bisecting configs and git and let the user examine
the results themselves and enter their own results.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Added force stop after success and failure</title>
<updated>2010-11-18T16:23:12Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2010-11-09T17:55:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1c8a617a274c4065681d964cd5a5afb921de4a87'/>
<id>urn:sha1:1c8a617a274c4065681d964cd5a5afb921de4a87</id>
<content type='text'>
Added the options STOP_AFTER_SUCCESS and STOP_AFTER_FAILURE to
allow the user to give a time (in seconds) to stop the monitor
after a stack trace or login has been detected. Sometimes the
kernel constantly prints out to the console and this may cause
the test to run indefinitely.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Updated the sample.conf for the latest options</title>
<updated>2010-11-18T16:23:11Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2010-11-08T22:41:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d1fbd7e6a6a4c67ab895a0219a2bbcf09d039c3a'/>
<id>urn:sha1:d1fbd7e6a6a4c67ab895a0219a2bbcf09d039c3a</id>
<content type='text'>
Added documentation for SSH_EXEC, SCP_TO_TARGET, REBOOT,
and CONFIG_BISECT and friends.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Update the sample config file with more documentation</title>
<updated>2010-11-18T16:23:09Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2010-11-02T19:22:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dc89568884ae1b8b96ca6fffe83b404ae472750e'/>
<id>urn:sha1:dc89568884ae1b8b96ca6fffe83b404ae472750e</id>
<content type='text'>
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
</feed>
