forked from extern/shorewall_code
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:
parent
8b29aa06a6
commit
ce2fc3ad11
@ -19,9 +19,18 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
case $(/sbin/shorewall version) in
|
||||||
|
4.0.*)
|
||||||
|
OPTIONS=vvv
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
OPTIONS=v2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
for directory in *; do
|
for directory in *; do
|
||||||
if [ -d $directory ]; then
|
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 [ -f $directory/firewall.last ]; then
|
||||||
if diff -au $directory/firewall.last $directory/firewall > $directory/compare; then
|
if diff -au $directory/firewall.last $directory/firewall > $directory/compare; then
|
||||||
echo "Test $directory PASSED"
|
echo "Test $directory PASSED"
|
||||||
|
Loading…
Reference in New Issue
Block a user