blob: a373a5bfff683cc4b395588af358a2aa92b2171d [file] [log] [blame]
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05001#!/usr/bin/perl
2
3open (IN,"ktest.pl");
4while (<IN>) {
Steven Rostedtc2857cb2011-12-22 22:06:59 -05005 # hashes are now used
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05006 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
Steven Rostedtc2857cb2011-12-22 22:06:59 -05007 /^\s*"?([A-Z].*?)"?\s*=>\s*/ ||
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -05008 /set_test_option\("(.*?)"/) {
9 $opt{$1} = 1;
10 }
11}
12close IN;
13
14open (IN, "sample.conf");
15while (<IN>) {
Steven Rostedtc2857cb2011-12-22 22:06:59 -050016 if (/^\s*#?\s*([A-Z]\S*)\s*=/) {
Steven Rostedtdbc6d0a2010-11-08 17:18:37 -050017 $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}