Skip to content

Commit

Permalink
[test suite] paths fixes for Makefile.am tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Feb 4, 2024
1 parent 091335a commit 77cc88a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test-fwknop.pl
Expand Up @@ -1985,15 +1985,15 @@ ()
open F, "< $make_file" or die $!;
while (<F>) {
if (m|test/$conf_dir/(\S+)|) {
if (m|conf/(\S+)|) {
$makefile_conf_files{$1} = '';
} elsif (m|test/$tests_dir/(\S+)|) {
} elsif (m|test/tests/(\S+)|) {
$makefile_test_scripts{$1} = '';
}
}
close F;
for my $f (glob("$conf_dir/*")) {
for my $f (glob("conf/*")) {
next if -d $f;
next unless $f =~ /\.conf/ or $f =~ /fwknop/;
if ($f =~ m|$conf_dir/(\S+)|) {
Expand All @@ -2005,8 +2005,8 @@ ()
}
}
for my $f (glob("$tests_dir/*.pl")) {
if ($f =~ m|$tests_dir/(\S+)|) {
for my $f (glob("tests/*.pl")) {
if ($f =~ m|tests/(\S+)|) {
unless (defined $makefile_test_scripts{$1}) {
&write_test_file("[-] test suite script file $1 not in $make_file.\n",
$curr_test_file);
Expand Down

0 comments on commit 77cc88a

Please sign in to comment.