testing: Change sql scenarios to swanctl
[strongswan.git] / testing / tests / sql / rw-eap-aka-rsa / 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 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
4 carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
5 moon::iptables-restore < /etc/iptables.rules
6 carol::iptables-restore < /etc/iptables.rules
7 moon::service charon start 2> /dev/null
8 carol::service charon start 2> /dev/null
9 moon::expect-connection rw-eap-aka
10 carol::expect-connection home
11 carol::swanctl --initiate --child home 2> /dev/null