mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-11 00:29:58 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user