blob: 4118eb4a842d2ec0af5410b319c9734ce74b3457 [file] [log] [blame]
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05001#!/usr/bin/perl
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01002# SPDX-License-Identifier: GPL-2.0
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05003
4open (IN,"ktest.pl");
5while (<IN>) {
Steven Rostedtc2857cb2011-12-22 22:06:59 -05006 # hashes are now used
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05007 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
Steven Rostedtc2857cb2011-12-22 22:06:59 -05008 /^\s*"?([A-Z].*?)"?\s*=>\s*/ ||
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05009 /set_test_option\("(.*?)"/) {
10 $opt{$1} = 1;
11 }
12}
13close IN;
14
15open (IN, "sample.conf");
16while (<IN>) {
Steven Rostedtc2857cb2011-12-22 22:06:59 -050017 if (/^\s*#?\s*([A-Z]\S*)\s*=/) {
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -050018 $samp{$1} = 1;
19 }
20}
21close IN;
22
23foreach $opt (keys %opt) {
24 if (!defined($samp{$opt})) {
25 print "opt = $opt\n";
26 }
27}
28
29foreach $samp (keys %samp) {
30 if (!defined($opt{$samp})) {
31 print "samp = $samp\n";
32 }
33}