summaryrefslogtreecommitdiff
path: root/tools/testing/ktest/compare-ktest-sample.pl
blob: 9a571e71683c2dfea90ddcf03911d93abee75081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/perl

open (IN,"ktest.pl");
while (<IN>) {
    if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
	/set_test_option\("(.*?)"/) {
	$opt{$1} = 1;
    }
}
close IN;

open (IN, "sample.conf");
while (<IN>) {
    if (/^\s*#?\s*(\S+)\s*=/) {
	$samp{$1} = 1;
    }
}
close IN;

foreach $opt (keys %opt) {
    if (!defined($samp{$opt})) {
	print "opt = $opt\n";
    }
}

foreach $samp (keys %samp) {
    if (!defined($opt{$samp})) {
	print "samp = $samp\n";
    }
}