testing: Reduce runtime of all tests that use SQLite databases by storing them in...
[strongswan.git] / testing / tests / sql / net2net-route-pem / pretest.dat
1 moon::rm /etc/ipsec.d/cacerts/*
2 sun::rm /etc/ipsec.d/cacerts/*
3 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
4 sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
5 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
6 sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
7 moon::iptables-restore < /etc/iptables.rules
8 sun::iptables-restore < /etc/iptables.rules
9 sun::ipsec start
10 moon::ipsec start
11 moon::expect-connection net-net
12 alice::ping -c 1 -W 1 PH_IP_BOB
13 bob::ping -c 1 -W 1 PH_IP_VENUS