Make regression tests work on 4.0

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7860 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-12-08 01:00:19 +00:00
parent 8b29aa06a6
commit ce2fc3ad11

View File

@ -19,9 +19,18 @@
#
#
case $(/sbin/shorewall version) in
4.0.*)
OPTIONS=vvv
;;
*)
OPTIONS=v2
;;
esac
for directory in *; do
if [ -d $directory ]; then
if /sbin/shorewall -v2 compile -t $directory $directory/firewall > $directory/compileroutput 2> $directory/compilererrors; then
if /sbin/shorewall -${OPTIONS} compile -t $directory $directory/firewall > $directory/compileroutput 2> $directory/compilererrors; then
if [ -f $directory/firewall.last ]; then
if diff -au $directory/firewall.last $directory/firewall > $directory/compare; then
echo "Test $directory PASSED"