aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest (follow)
AgeCommit message (Collapse)AuthorFilesLines
2010-11-18ktest: Allow a test case to undefine a default valueSteven Rostedt1-0/+5
Allow a test case in the config file to undefine a default value by specifying the option and equal sign but not assigning it a value: OPTION = Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Use $output_config instead of typing $outputdir/.configSteven Rostedt1-8/+10
To help prevent typos, use $output_config as the reference to "$outputdir/.config". Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Write to stdout if no log file is givenSteven Rostedt1-2/+10
If no LOG_FILE option is set, then write what would be logged to that file to standard output. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Use oldnoconfig instead of yes commandSteven Rostedt1-3/+2
Running the command "yes ''" through the make oldconfig may enable things we do not want enabled. If something is default enabled, the yes command with '' as an argument will enable it. Use oldnoconfig, which runs everything as if 'no' was used. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Update the sample config file with more documentationSteven Rostedt1-91/+103
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: New TEST_START instead of using [], and use real SHA1sSteven Rostedt2-118/+433
Change the config to use TEST_START where the options after a TEST_START automatically get the [] as it is read and they do not need to exist in the config file; TEST_START MIN_CONFIG = myconfig is the same as MIN_CONFIG[1] = myconfig The benefit is that you no longer need to keep track of test numbers with tests. Also process the commit ids that are passed to the options to get the actually SHA1 so it is no longer relative to the branch. Ie, saying HEAD will get the current SHA1 and then that will be used, and will work even if another branch is checked out. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Add poweroff after halt and powercycle after rebootSteven Rostedt2-15/+66
Added the options POWEROFF_AFTER_HALT to handle boxes that do not really shut off after a halt is called. Added POWERCYCLE_AFTER_REBOOT to force a power cycle for boxes that don't reboot but get stuck during the reboot. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Add POST_INSTALL to allow initrds to be createdSteven Rostedt2-0/+16
Add a POST_INSTALL option that runs after the build and install but before rebooting to the test kernel. This alls the user to run a script that will install an initrd (or anything else that may be special) before booting. An environment variable KERNEL_VERSION is set. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Added sample.conf, new %default option formatSteven Rostedt2-142/+649
Added sample.conf as a nice document to show new users. Use a %default hash to separate out the options that are default and allow us to complain about options being set twice. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Add open and close console and start stop monitorSteven Rostedt1-87/+170
It is much better to keep the monitor running throughout a test than to constantly start and stop it. Some console readers will show everything that has happened before when opening the console, and by opening it several times, causes the old content to be read multiple times in a single test. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Added continuing on success, clear log and timeoutSteven Rostedt1-38/+78
Add option to continue after a test fails. Add option to reset the log at start of running ktest. Update default timeout to 2 minutes. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Add reverse bisect, better logging, copyrightSteven Rostedt1-6/+45
Added the ability to do a reverse bisect. Better logging of running commands. Added the copyright statement. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Added patchcheckSteven Rostedt1-2/+140
Added patchcheck functionality. It will checkout a given SHA1 and test that commit and all commits to another given SHA1. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Added reboot on successSteven Rostedt1-1/+6
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Added better console, add test buildSteven Rostedt1-48/+159
Better reading of the console. Added running a script to do testing after build succeeds. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: Bisecting, install modules, add loggingSteven Rostedt1-94/+227
Added bisecting, modules, logging of the output. Banners that show success. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: New features reboot on error, make optionsSteven Rostedt1-16/+46
REBOOT_ON_ERROR to reboot the box on error BUILD_OPTIONS to add options to the make build (like -j40) Added "useconfig:<config>". Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18ktest: New features: noclean, dodie, poweroff on error and successSteven Rostedt1-21/+94
Added dodie function to have a bit more control over die calls. BUILD_NOCLEAN to not run make mrproper or remove .config. POWEROFF_ON_{SUCCESS,ERROR} to turn off the power after tests. Skip backtrace calls that were done by the backtrace tests. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-11-18Initial start of ktest.plSteven Rostedt1-0/+334
Originally named autotest.pl, but renamed to ktest.pl now because the autotest name is used by other projects. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>