testing: Reduce runtime of all tests that use SQLite databases by storing them in ramfs

This commit is contained in:
Tobias Brunner
2015-11-09 15:18:39 +01:00
parent 3102da20a7
commit 10051b01e9
161 changed files with 319 additions and 312 deletions
@@ -7,7 +7,7 @@ charon {
libhydra {
plugins {
attr-sql {
database = sqlite:///etc/ipsec.d/ipsec.db
database = sqlite:///etc/db.d/ipsec.db
}
}
}
@@ -5,4 +5,3 @@ moon::iptables-restore < /etc/iptables.flush
carol::iptables-restore < /etc/iptables.flush
alice::iptables-restore < /etc/iptables.flush
moon::ipsec pool --del intpool 2> /dev/null
moon::rm /etc/ipsec.d/ipsec.*
@@ -1,5 +1,5 @@
moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql > /etc/ipsec.d/ipsec.sql
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql > /etc/db.d/ipsec.sql
moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
moon::ipsec pool --add intpool --start 10.4.0.1 --end 10.4.1.244 --timeout 0 2> /dev/null
moon::iptables-restore < /etc/iptables.rules
carol::iptables-restore < /etc/iptables.rules
@@ -19,3 +19,7 @@ TCPDUMPHOSTS="alice carol"
# Used for IPsec logging purposes
#
IPSECHOSTS="alice moon carol"
# Guest instances on which databases are used
#
DBHOSTS="moon"