diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-12 11:38:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-12 11:38:08 -0500 |
commit | 968a8516a4f6d76e022842ba774458044d80d12c (patch) | |
tree | d0f49461800480ef13a66e8b5d9f5558cba8b32a /tools/testing/ktest/compare-ktest-sample.pl | |
parent | 94d4c4cd563aeff4d498168f1c8444074160d0e7 (diff) | |
parent | 8d1491bae72e3500b74e1855afa10f0544068cea (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest
* git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest: (30 commits)
ktest: Ask for the manditory config options instead of just failing
ktest: Copy the last good and bad configs in config_bisect
ktest: For grub reboot, use run_ssh instead of run_command
ktest: Added force stop after success and failure
ktest: Parse off the directory name in useconfig for failures
ktest: Use different temp config name for minconfig
ktest: Updated the sample.conf for the latest options
ktest: Added compare script to test ktest.pl to sample.conf
ktest: Added config_bisect test type
ktest/cleanups: Added version 0.2, ssh as options
ktest: Output something easy to parse for failure or success
ktest: Allow a test case to undefine a default value
ktest: Use $output_config instead of typing $outputdir/.config
ktest: Write to stdout if no log file is given
ktest: Use oldnoconfig instead of yes command
ktest: Update the sample config file with more documentation
ktest: New TEST_START instead of using [], and use real SHA1s
ktest: Add poweroff after halt and powercycle after reboot
ktest: Add POST_INSTALL to allow initrds to be created
ktest: Added sample.conf, new %default option format
...
Diffstat (limited to 'tools/testing/ktest/compare-ktest-sample.pl')
-rwxr-xr-x | tools/testing/ktest/compare-ktest-sample.pl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/testing/ktest/compare-ktest-sample.pl b/tools/testing/ktest/compare-ktest-sample.pl new file mode 100755 index 000000000000..9a571e71683c --- /dev/null +++ b/tools/testing/ktest/compare-ktest-sample.pl | |||
@@ -0,0 +1,30 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | open (IN,"ktest.pl"); | ||
4 | while (<IN>) { | ||
5 | if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ || | ||
6 | /set_test_option\("(.*?)"/) { | ||
7 | $opt{$1} = 1; | ||
8 | } | ||
9 | } | ||
10 | close IN; | ||
11 | |||
12 | open (IN, "sample.conf"); | ||
13 | while (<IN>) { | ||
14 | if (/^\s*#?\s*(\S+)\s*=/) { | ||
15 | $samp{$1} = 1; | ||
16 | } | ||
17 | } | ||
18 | close IN; | ||
19 | |||
20 | foreach $opt (keys %opt) { | ||
21 | if (!defined($samp{$opt})) { | ||
22 | print "opt = $opt\n"; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | foreach $samp (keys %samp) { | ||
27 | if (!defined($opt{$samp})) { | ||
28 | print "samp = $samp\n"; | ||
29 | } | ||
30 | } | ||