aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/build-guestimages
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-07-21 15:04:24 +0200
committerTobias Brunner <tobias@strongswan.org>2016-08-29 18:11:42 +0200
commitdda06b0439f23a1191c57b505c96251e63e8a690 (patch)
tree4d3924d0a2dd3c84f22738a85d03f40d7648540d /testing/scripts/build-guestimages
parent7a8985b5752e8d19d2b83b7a7641698a7ecadb49 (diff)
downloadstrongswan-dda06b0439f23a1191c57b505c96251e63e8a690.tar.bz2
strongswan-dda06b0439f23a1191c57b505c96251e63e8a690.tar.xz
testing: Mount and serve testresults from the host
This avoids having to copy testresults, makes results of cancelled runs browsable (runs may actually be followed live) and preserves old results when rebuilding guest images (e.g. when using the build-strongswan script). The number of consecutive test runs without any intermittent rebuild of the guest images is also not limited by the image size anymore.
Diffstat (limited to 'testing/scripts/build-guestimages')
-rwxr-xr-xtesting/scripts/build-guestimages3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/scripts/build-guestimages b/testing/scripts/build-guestimages
index 8fd101003..43a71b921 100755
--- a/testing/scripts/build-guestimages
+++ b/testing/scripts/build-guestimages
@@ -60,6 +60,9 @@ do
then
execute "mkdir $LOOPDIR/var/log/apache2/ocsp" 0
execute "cp -rf $DIR/../images $LOOPDIR/var/www/" 0
+ execute "mkdir $LOOPDIR/var/www/testresults" 0
+ echo "echo /testresults ... >> $LOOPDIR/etc/fstab" >>$LOGFILE 2>&1
+ echo "/testresults /var/www/testresults 9p trans=virtio,version=9p2000.L 0 0" >> $LOOPDIR/etc/fstab
execute_chroot "a2enmod -q cgid" 0
execute_chroot "a2enmod -q rewrite" 0
execute_chroot "ln -s /etc/openssl/certs /var/www/certs" 0