added ikev1/esp-alg-aesxcbc scenario
[strongswan.git] / testing / do-tests.in
index da4a6d6..54407f2 100755 (executable)
@@ -252,6 +252,13 @@ do
            continue
        fi
 
+       if [ $name = "rw-psk-ipv6" ]
+       then
+           IPTABLES="ip6tables"
+       else
+           IPTABLES="iptables"
+       fi
+
        [ -f $DEFAULTTESTSDIR/${testname}/description.txt ] || die "!! File 'description.txt' is missing"
        [ -f $DEFAULTTESTSDIR/${testname}/test.conf ]       || die "!! File 'test.conf' is missing"
        [ -f $DEFAULTTESTSDIR/${testname}/pretest.dat ]     || die "!! File 'pretest.dat' is missing"
@@ -463,7 +470,7 @@ do
                    > $TESTRESULTDIR/${host}.$command 2>/dev/null
            done
 
-           for file in ipsec.conf ipsec.secrets
+           for file in strongswan.conf ipsec.conf ipsec.secrets
            do
                scp $HOSTLOGIN:/etc/$file \
                    $TESTRESULTDIR/${host}.$file  > /dev/null 2>&1
@@ -473,12 +480,10 @@ do
                then
                        scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
                        $TESTRESULTDIR/${host}.ipsec.sql  > /dev/null 2>&1
-                       scp $HOSTLOGIN:/etc/ipsec.d/strongswan.conf \
-                       $TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
                else
                        touch $TESTRESULTDIR/${host}.ipsec.sql
-                       touch $TESTRESULTDIR/${host}.strongswan.conf
                fi
+
            ssh $HOSTLOGIN ip xfrm policy \
                    > $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
            ssh $HOSTLOGIN ip xfrm state \