Steven Rostedt | dbc6d0a | 2010-11-08 17:18:37 -0500 | [diff] [blame] | 1 | #!/usr/bin/perl |
| 2 | |
| 3 | open (IN,"ktest.pl"); |
| 4 | while (<IN>) { |
Steven Rostedt | c2857cb | 2011-12-22 22:06:59 -0500 | [diff] [blame] | 5 | # hashes are now used |
Steven Rostedt | dbc6d0a | 2010-11-08 17:18:37 -0500 | [diff] [blame] | 6 | if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ || |
Steven Rostedt | c2857cb | 2011-12-22 22:06:59 -0500 | [diff] [blame] | 7 | /^\s*"?([A-Z].*?)"?\s*=>\s*/ || |
Steven Rostedt | dbc6d0a | 2010-11-08 17:18:37 -0500 | [diff] [blame] | 8 | /set_test_option\("(.*?)"/) { |
| 9 | $opt{$1} = 1; |
| 10 | } |
| 11 | } |
| 12 | close IN; |
| 13 | |
| 14 | open (IN, "sample.conf"); |
| 15 | while (<IN>) { |
Steven Rostedt | c2857cb | 2011-12-22 22:06:59 -0500 | [diff] [blame] | 16 | if (/^\s*#?\s*([A-Z]\S*)\s*=/) { |
Steven Rostedt | dbc6d0a | 2010-11-08 17:18:37 -0500 | [diff] [blame] | 17 | $samp{$1} = 1; |
| 18 | } |
| 19 | } |
| 20 | close IN; |
| 21 | |
| 22 | foreach $opt (keys %opt) { |
| 23 | if (!defined($samp{$opt})) { |
| 24 | print "opt = $opt\n"; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | foreach $samp (keys %samp) { |
| 29 | if (!defined($opt{$samp})) { |
| 30 | print "samp = $samp\n"; |
| 31 | } |
| 32 | } |