Merge tag 'v4.0-rc1' into patchwork
[deliverable/linux.git] / tools / testing / ktest / compare-ktest-sample.pl
CommitLineData
dbc6d0aa
SR
1#!/usr/bin/perl
2
3open (IN,"ktest.pl");
4while (<IN>) {
c2857cb4 5 # hashes are now used
dbc6d0aa 6 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
c2857cb4 7 /^\s*"?([A-Z].*?)"?\s*=>\s*/ ||
dbc6d0aa
SR
8 /set_test_option\("(.*?)"/) {
9 $opt{$1} = 1;
10 }
11}
12close IN;
13
14open (IN, "sample.conf");
15while (<IN>) {
c2857cb4 16 if (/^\s*#?\s*([A-Z]\S*)\s*=/) {
dbc6d0aa
SR
17 $samp{$1} = 1;
18 }
19}
20close IN;
21
22foreach $opt (keys %opt) {
23 if (!defined($samp{$opt})) {
24 print "opt = $opt\n";
25 }
26}
27
28foreach $samp (keys %samp) {
29 if (!defined($opt{$samp})) {
30 print "samp = $samp\n";
31 }
32}
This page took 0.284535 seconds and 5 git commands to generate.