3e1b762d7df7e9fb1270686b3b7c8076f0700fd5
[strongswan.git] / testing / tests / sql / ip-pool-db-expired / pretest.dat
1 moon::rm /etc/ipsec.d/cacerts/*
2 carol::rm /etc/ipsec.d/cacerts/*
3 dave::rm /etc/ipsec.d/cacerts/*
4 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
5 carol::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
6 dave::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
7 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
8 carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
9 dave::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
10 moon::ipsec pool --leases 2> /dev/null
11 moon::iptables-restore < /etc/iptables.rules
12 carol::iptables-restore < /etc/iptables.rules
13 dave::iptables-restore < /etc/iptables.rules
14 moon::ipsec start
15 carol::ipsec start
16 dave::ipsec start
17 carol::expect-connection home
18 carol::ipsec up home
19 dave::expect-connection home
20 dave::ipsec up home