From 9075a6dd7a51c62ffc5d36f4629e6b168d4c68fa Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 2 Mar 2017 10:49:49 -0800 Subject: [PATCH] Copy libs and footer when compiling for test Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Compiler.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index a2b0cbb14..3384f0f50 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -93,11 +93,10 @@ sub generate_script_1( $ ) { my $date = compiletime; emit "#!$config{SHOREWALL_SHELL}\n#\n# Compiled firewall script generated by Shorewall $globals{VERSION} - $date\n#"; - - copy $globals{SHAREDIRPL} . '/lib.runtime', 0; - copy2 $globals{SHAREDIRPL} . '/lib.common' , $debug; } + copy $globals{SHAREDIRPL} . '/lib.runtime', 0; + copy2 $globals{SHAREDIRPL} . '/lib.common' , $debug; } my $lib = find_file 'lib.private'; @@ -945,7 +944,7 @@ sub compiler { # # Copy the footer to the script # - copy $globals{SHAREDIRPL} . 'prog.footer' unless $test; + copy $globals{SHAREDIRPL} . 'prog.footer'; disable_script; #