testing: Change sql scenarios to swanctl
[strongswan.git] / testing / tests / sql / rw-psk-ipv6 / pretest.dat
1 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
2 carol::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
3 dave::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
4 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
5 carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
6 dave::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
7 moon::iptables-restore < /etc/iptables.rules
8 carol::iptables-restore < /etc/iptables.rules
9 dave::iptables-restore < /etc/iptables.rules
10 moon::ip6tables-restore < /etc/ip6tables.rules
11 carol::ip6tables-restore < /etc/ip6tables.rules
12 dave::ip6tables-restore < /etc/ip6tables.rules
13 alice::"ip route add fec0:\:/16 via fec1:\:1"
14 carol::"ip route add fec1:\:/16 via fec0:\:1"
15 dave::"ip route add fec1:\:/16 via fec0:\:1"
16 moon::service charon start 2> /dev/null
17 carol::service charon start 2> /dev/null
18 dave::service charon start 2> /dev/null
19 moon::expect-connection rw
20 carol::expect-connection home
21 carol::swanctl --initiate --child home 2> /dev/null
22 dave::expect-connection home
23 dave::swanctl --initiate --child home 2> /dev/null