<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/testing/ktest, branch v3.0.82</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/tools/testing/ktest?h=v3.0.82</id>
<link rel='self' href='https://git.amat.us/linux/atom/tools/testing/ktest?h=v3.0.82'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-06-02T15:57:57Z</updated>
<entry>
<title>ktest: Ignore unset values of the minconfig in config_bisect</title>
<updated>2011-06-02T15:57:57Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-06-02T03:27:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9bf7174949aef2f43253956e1f3ab01698abbd79'/>
<id>urn:sha1:9bf7174949aef2f43253956e1f3ab01698abbd79</id>
<content type='text'>
By ignoring the unset values of the minconfig in deciding
what to test in the config_bisect can cause the problem
config from being tested too.

Just do not test the configs that are set in the minconfig.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Fix result of rebooting the kernel</title>
<updated>2011-06-02T15:57:56Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-06-02T03:25:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4da46da2d295c0d9f4aaf28dd2b70a1ecb42d972'/>
<id>urn:sha1:4da46da2d295c0d9f4aaf28dd2b70a1ecb42d972</id>
<content type='text'>
The command that is called that reboots the kernel may fail
but the return code is not passed back to the ktest.pl script.
This is because a ';' is used between the two commands and
if the second command fails, only the first command's return
code is returned. Using a '&amp;&amp;' between the two commands fixes
this.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Fix off-by-one in config bisect result</title>
<updated>2011-06-02T15:57:41Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-06-02T03:22:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4c8cc55b3c0ebe989e727017933945b68b4327cd'/>
<id>urn:sha1:4c8cc55b3c0ebe989e727017933945b68b4327cd</id>
<content type='text'>
Because in perl the array size returned by $#arr, is the last
index and not the actually size of the array, we end the config
bisect early, thinking there is only one config left when there
are in fact two. Thus the result has a 50% chance of picking
the correct config that caused the problem.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<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: Reboot to good kernel after every bisect run</title>
<updated>2011-05-20T13:16:29Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-05-20T13:16:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4025bc62dd045d326d8a26a50fc86fd163aec89f'/>
<id>urn:sha1:4025bc62dd045d326d8a26a50fc86fd163aec89f</id>
<content type='text'>
Reboot after each bisect run regardless if the bisect passed
or failed. The test may just be to boot the kernel and that kernel
may not have a way to copy the next kerne to it. Reboot to a known
good kernel after each bisect run.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: If test failed due to timeout, print that</title>
<updated>2011-05-20T13:14:35Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-05-20T13:14:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4d62bf51ac3408de85ebc1b677058482069b2e1c'/>
<id>urn:sha1:4d62bf51ac3408de85ebc1b677058482069b2e1c</id>
<content type='text'>
If the test failed due to timeout for boot, print a message saying
so. Otherwise the user will be confused to why their test just failed.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ktest: Fix post install command</title>
<updated>2011-05-20T13:11:58Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2011-03-26T02:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ca6a21f874301d0eb133819a60731c0f39967311'/>
<id>urn:sha1:ca6a21f874301d0eb133819a60731c0f39967311</id>
<content type='text'>
The command to run post install (for those that want initrds) was
broken. Instead of doing a substitution for the $KERNEL_VERSION
variable. It was replacing the entire command with nothing.

Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest</title>
<updated>2011-03-21T21:13:48Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-03-21T21:13:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b52307ca144881bf9ef1c2610b3f1911472eb467'/>
<id>urn:sha1:b52307ca144881bf9ef1c2610b3f1911472eb467</id>
<content type='text'>
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest:
  ktest: Add STOP_TEST_AFTER to stop the test after a period of time
  ktest: Monitor kernel while running of user tests
  ktest: Fix bug where the test would not end after failure
  ktest: Add BISECT_FILES to run git bisect on paths
  ktest: Add BISECT_SKIP
  ktest: Add manual bisect
  ktest: Handle kernels before make oldnoconfig
  ktest: Start failure timeout on panic too
  ktest: Print logfile name on failure
</content>
</entry>
</feed>
