From 10051b01e9a5accf004f861e7de8486304a550ca Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 6 Nov 2015 17:27:45 +0100 Subject: testing: Reduce runtime of all tests that use SQLite databases by storing them in ramfs --- testing/tests/tnc/tnccs-20-os/pretest.dat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'testing/tests/tnc/tnccs-20-os/pretest.dat') diff --git a/testing/tests/tnc/tnccs-20-os/pretest.dat b/testing/tests/tnc/tnccs-20-os/pretest.dat index dc43ed516..3c5cd328e 100644 --- a/testing/tests/tnc/tnccs-20-os/pretest.dat +++ b/testing/tests/tnc/tnccs-20-os/pretest.dat @@ -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 -- cgit v1.2.3