mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-13 17:18:12 +01:00
Modify regression test to ensure that modification timestamp of the output file changes
This commit is contained in:
parent
322a5de871
commit
50b2f5ffae
@ -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