testing: Reduce runtime of all tests that use SQLite databases by storing them in ramfs
This commit is contained in:
@@ -15,11 +15,11 @@ charon {
|
||||
}
|
||||
|
||||
libimcv {
|
||||
database = sqlite:///etc/pts/config.db
|
||||
database = sqlite:///etc/db.d/config.db
|
||||
policy_script = ipsec imv_policy_manager
|
||||
}
|
||||
|
||||
attest {
|
||||
load = random nonce openssl sqlite
|
||||
database = sqlite:///etc/pts/config.db
|
||||
database = sqlite:///etc/db.d/config.db
|
||||
}
|
||||
|
||||
@@ -5,4 +5,3 @@ moon::iptables-restore < /etc/iptables.flush
|
||||
carol::iptables-restore < /etc/iptables.flush
|
||||
dave::iptables-restore < /etc/iptables.flush
|
||||
carol::echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
moon::umount /etc/pts
|
||||
|
||||
@@ -3,12 +3,9 @@ carol::iptables-restore < /etc/iptables.rules
|
||||
dave::iptables-restore < /etc/iptables.rules
|
||||
carol::echo 0 > /proc/sys/net/ipv4/ip_forward
|
||||
dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
|
||||
moon::mv /etc/pts/data1.sql /tmp/
|
||||
moon::mount -t ramfs -o size=5m ramfs /etc/pts
|
||||
moon::mv /tmp/data1.sql /etc/pts/
|
||||
moon::sed -i "s/NOW/`date +%s`/g" /etc/pts/data1.sql
|
||||
moon::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
|
||||
moon::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/pts/config.db
|
||||
moon::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
|
||||
moon::cat /etc/tnc_config
|
||||
carol::cat /etc/tnc_config
|
||||
dave::cat /etc/tnc_config
|
||||
|
||||
@@ -20,7 +20,6 @@ TCPDUMPHOSTS="moon"
|
||||
#
|
||||
IPSECHOSTS="moon carol dave"
|
||||
|
||||
# Guest instances on which FreeRadius is started
|
||||
# Guest instances on which databases are used
|
||||
#
|
||||
RADIUSHOSTS=
|
||||
|
||||
DBHOSTS="moon"
|
||||
Reference in New Issue
Block a user