From: Amos Jeffries Date: Sun, 8 Feb 2009 03:26:04 +0000 (+1300) Subject: TestBed: add slave tester script X-Git-Tag: SQUID_3_2_0_1~1207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a2c981293f48a6f522aa7403544a0fd4dc95708;p=thirdparty%2Fsquid.git TestBed: add slave tester script 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 --- diff --git a/scripts/testbed.sh b/scripts/testbed.sh new file mode 100755 index 0000000000..c09e618eb4 --- /dev/null +++ b/scripts/testbed.sh @@ -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