33 lines · 559 B · Perl
RawDownload
#!/usr/bin/perl# SPDX-License-Identifier: GPL-2.0 open (IN,"ktest.pl");while (<IN>) {    # hashes are now used    if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ ||	/^\s*"?([A-Z].*?)"?\s*=>\s*/ ||	/set_test_option\("(.*?)"/) {	$opt{$1} = 1;    }}close IN; open (IN, "sample.conf");while (<IN>) {    if (/^\s*#?\s*([A-Z]\S*)\s*=/) {	$samp{$1} = 1;    }}close IN; foreach $opt (keys %opt) {    if (!defined($samp{$opt})) {	print "opt = $opt\n";    }} foreach $samp (keys %samp) {    if (!defined($opt{$samp})) {	print "samp = $samp\n";    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t