]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Use sans-serif font for test results
authorTobias Brunner <tobias@strongswan.org>
Thu, 5 May 2022 07:31:28 +0000 (09:31 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 24 May 2022 06:11:56 +0000 (08:11 +0200)
We could later extend the stylesheet more or even add something similar
to actual templates (e.g. a shared header/footer).

testing/css/site.css [new file with mode: 0644]
testing/do-tests
testing/hosts/winnetou/etc/apache2/sites-available/000-default.conf
testing/scripts/build-guestimages

diff --git a/testing/css/site.css b/testing/css/site.css
new file mode 100644 (file)
index 0000000..a326381
--- /dev/null
@@ -0,0 +1,3 @@
+body {
+       font-family: sans-serif;
+}
index 1e6a83a3700028705ee07a4188b2a1247805bd85..87bd07e21242ef804e9927f43044e2e6358fca18 100755 (executable)
@@ -177,6 +177,7 @@ cat > $INDEX <<@EOF
 <html>
 <head>
   <title>strongSwan KVM Tests</title>
+  <link rel="stylesheet" href="css/site.css">
 </head>
 <body>
   <h2>strongSwan KVM Tests</h2>
@@ -187,6 +188,7 @@ cat > $TESTRESULTSHTML <<@EOF
 <html>
 <head>
   <title>strongSwan KVM Tests - All Tests</title>
+  <link rel="stylesheet" href="css/site.css">
 </head>
 <body>
   <div><a href="index.html">strongSwan KVM Tests</a> / All Tests</div>
@@ -267,6 +269,7 @@ do
 <html>
 <head>
   <title>strongSwan $SUBDIR Tests</title>
+  <link rel="stylesheet" href="../css/site.css">
 </head>
 <body>
   <div><a href="../index.html">strongSwan KVM Tests</a> / $SUBDIR</div>
@@ -512,6 +515,7 @@ do
 <html>
 <head>
   <title>Test $testname</title>
+  <link rel="stylesheet" href="../../css/site.css">
 </head>
 <body>
 <table border="0" cellpadding="0" cellspacing="0" width="600">
index 03f93ad2e5ec7a8a2c3e808a3adada3540511f3e..131f225180eb1d0272555e76dab2dadbb27eddb5 100644 (file)
@@ -8,6 +8,7 @@
 
         RewriteEngine on
         RewriteRule "^/testresults/.+/images/(.*)" "/images/$1" [PT]
+        RewriteRule "^/testresults/.+/css/(.*)"    "/css/$1" [PT]
 
         LogLevel warn
         ErrorLog ${APACHE_LOG_DIR}/error.log
index bb638ec4463ae1d7ce9ae26025aa133281ed27e1..3619b5e947af200fdce3eefaaccf4ab8e06e74d9 100755 (executable)
@@ -60,6 +60,7 @@ do
        then
                execute "mkdir $LOOPDIR/var/log/apache2/ocsp" 0
                execute "cp -rf $DIR/../images $LOOPDIR/var/www/" 0
+               execute "cp -rf $DIR/../css $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