USB: s3c-hsotg: Fix stall condition processing
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / tools / testing / ktest / compare-ktest-sample.pl
blob9a571e71683c2dfea90ddcf03911d93abee75081
1 #!/usr/bin/perl
3 open (IN,"ktest.pl");
4 while (<IN>) {
5 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||
6 /set_test_option\("(.*?)"/) {
7 $opt{$1} = 1;
10 close IN;
12 open (IN, "sample.conf");
13 while (<IN>) {
14 if (/^\s*#?\s*(\S+)\s*=/) {
15 $samp{$1} = 1;
18 close IN;
20 foreach $opt (keys %opt) {
21 if (!defined($samp{$opt})) {
22 print "opt = $opt\n";
26 foreach $samp (keys %samp) {
27 if (!defined($opt{$samp})) {
28 print "samp = $samp\n";