Skip to content

Commit

Permalink
[test suite] minor 're-run make' bug fix for perl FKO module installa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
mrash committed Dec 9, 2012
1 parent 5f598bb commit 59fe047
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions test/test-fwknop.pl
Expand Up @@ -2863,15 +2863,23 @@ ()


chdir '../perl/FKO' or die $!; chdir '../perl/FKO' or die $!;


&run_cmd("make clean", $cmd_out_tmp, &run_cmd("make clean", $cmd_out_tmp, "../../test/$curr_test_file")
"../../test/$curr_test_file"); if -e 'Makefile' or -e 'Makefile.old';

&run_cmd("perl Makefile.PL PREFIX=../../test/$perl_mod_fko_dir " . &run_cmd("perl Makefile.PL PREFIX=../../test/$perl_mod_fko_dir " .
"LIB=../../test/$perl_mod_fko_dir", $cmd_out_tmp, "LIB=../../test/$perl_mod_fko_dir", $cmd_out_tmp,
"../../test/$curr_test_file"); "../../test/$curr_test_file");
&run_cmd('make', $cmd_out_tmp,
"../../test/$curr_test_file"); &run_cmd('make', $cmd_out_tmp, "../../test/$curr_test_file");
&run_cmd('make install', $cmd_out_tmp,
"../../test/$curr_test_file"); if (&file_find_regex([qr/rerun\sthe\smake\scommand/],
$MATCH_ALL, "../../test/$curr_test_file")) {
&run_cmd('touch Makefile.PL', $cmd_out_tmp, "../../test/$curr_test_file");
&run_cmd('touch Makefile', $cmd_out_tmp, "../../test/$curr_test_file");
&run_cmd('make', $cmd_out_tmp, "../../test/$curr_test_file");
}

&run_cmd('make install', $cmd_out_tmp, "../../test/$curr_test_file");


chdir $curr_pwd or die $!; chdir $curr_pwd or die $!;


Expand Down

0 comments on commit 59fe047

Please sign in to comment.