Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / tools / testing / ktest / compare-ktest-sample.pl
blob4118eb4a842d2ec0af5410b319c9734ce74b3457
1 #!/usr/bin/perl
2 # SPDX-License-Identifier: GPL-2.0
4 open (IN,"ktest.pl");
5 while (<IN>) {
6 # hashes are now used
7 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
8 /^\s*"?([A-Z].*?)"?\s*=>\s*/ ||
9 /set_test_option\("(.*?)"/) {
10 $opt{$1} = 1;
13 close IN;
15 open (IN, "sample.conf");
16 while (<IN>) {
17 if (/^\s*#?\s*([A-Z]\S*)\s*=/) {
18 $samp{$1} = 1;
21 close IN;
23 foreach $opt (keys %opt) {
24 if (!defined($samp{$opt})) {
25 print "opt = $opt\n";
29 foreach $samp (keys %samp) {
30 if (!defined($opt{$samp})) {
31 print "samp = $samp\n";