]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: add slave tester script
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2009 03:26:04 +0000 (16:26 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2009 03:26:04 +0000 (16:26 +1300)
This is draft #2 of the multi-machine script. I have it running locally.

As an intermediary step to kick wider testing until we get something
better going.  This script can be run by cron and sends an email to
noc@squid-cache.org detailing the local system OS, CPU, and build results.

Requires:
    sendmail or mailer providing sendmail API
    bzr with checkout of (trunk, SQUID_3_1, or SQUID_3_0)

TODO:
    check that the binaries called are portable

scripts/testbed.sh [new file with mode: 0755]

diff --git a/scripts/testbed.sh b/scripts/testbed.sh
new file mode 100755 (executable)
index 0000000..c09e618
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+(
+# report email headers
+       echo "To: noc@squid-cache.org"
+       echo "From: ${2}"
+       echo "Subject: Build Test on ${1}"
+       echo ""
+
+# system details
+       echo -n "SYSTEM: " && /bin/uname -rsim
+       echo -n "DATE: " && /bin/date
+       echo -n "SQUID: " && (bzr info | grep "public branch")
+
+# build results
+       bzr update
+       ./bootstrap.sh
+       ./test-builds.sh
+
+) | /usr/sbin/sendmail -t