forked from extern/shorewall_code
Modify regression test to ensure that modification timestamp of the output file changes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9935 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
322a5de871
commit
3cb7186e90
@ -44,6 +44,8 @@ use Shorewall::Compiler;
|
||||
use Getopt::Long;
|
||||
|
||||
sub usage( $ ) {
|
||||
my $returnval = shift @_;
|
||||
|
||||
print STDERR 'usage: compiler.pl [ <option> ... ] [ <filename> ]
|
||||
|
||||
options are:
|
||||
@ -58,7 +60,8 @@ sub usage( $ ) {
|
||||
[ --test ]
|
||||
[ --family={4|6} ]
|
||||
';
|
||||
exit shift @_;
|
||||
|
||||
$returnval;
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -34,8 +34,11 @@ DIRECTORIES="$*"
|
||||
|
||||
for directory in $DIRECTORIES; do
|
||||
if [ -d $directory ]; then
|
||||
existing=$(ls -l $directory/firewall 2> /dev/null);
|
||||
if /sbin/shorewall -${OPTIONS} compile -t $directory $directory/firewall > $directory/compileroutput 2> $directory/compilererrors; then
|
||||
if [ -f $directory/firewall.last ]; then
|
||||
if [ "$existing" = "$(ls -l $directory/firewall)" ]; then
|
||||
echo "Test $directory FAILED ******** No object produced"
|
||||
elif [ -f $directory/firewall.last ]; then
|
||||
if diff -au $directory/firewall.last $directory/firewall > $directory/compare; then
|
||||
echo "Test $directory PASSED"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user