testing: Change sql scenarios to swanctl
[strongswan.git] / testing / tests / sql / ip-pool-db-restart / 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::ipsec pool --leases 2> /dev/null
8 moon::iptables-restore < /etc/iptables.rules
9 carol::iptables-restore < /etc/iptables.rules
10 dave::iptables-restore < /etc/iptables.rules
11 moon::service charon start 2> /dev/null
12 carol::service charon start 2> /dev/null
13 dave::service charon start 2> /dev/null
14 moon::expect-connection rw
15 dave::expect-connection home
16 dave::swanctl --initiate --child home 2> /dev/null
17 carol::expect-connection home
18 carol::swanctl --initiate --child home 2> /dev/null