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:
teastep
2009-04-19 14:19:40 +00:00
parent 322a5de871
commit 3cb7186e90
2 changed files with 8 additions and 2 deletions

View File

@ -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