* adt-testreport-onepackage: Handling of source packages'
Architecture: field corrected so package selection works properly.
* adt-testreport-onepackage: use ln -f when installing summary.
+ * hosts/cadmium/*: new directory for stuff on Canonical buildd.
--
--- /dev/null
+#!/usr/bin/perl
+
+# formail < AUTOPKGTEST -s /net/anarres/slash/ubuntu/work/AutomatedTesting/autopkgtest--main/runner/adt-sendto-launchpad --mail
+
+if ($ARGV[0] eq '--mail') {
+ shift;
+ $sm= open STDOUT, "|/usr/sbin/sendmail -oi -odb -oem -t";
+ defined $sm or die $!;
+}
+
+while (<>) {
+ if (s/^subject: //i) {
+ s/^autopkgtest // or die "$_ ?";
+ s/^(\w+) // or die "$_ ?"; $distro= $1;
+ s/^([-+.0-9a-z]+)// or die "$_ ?"; $package= $1;
+ if (m/^:/) {
+ $target= 'source';
+ } elsif (m/^ (\w+)\:/) {
+ $target= $1;
+ } else {
+ die "$_ ?";
+ }
+ }
+ last if m/^$/;
+}
+
+$lphead= " affects /ubuntu/$package\n";
+
+if ($target eq 'source') {
+ $subject= "$distro/amd64: ftbfs / autopkgtest failure";
+ $intro= '
+An instance of autopkgtest (an automatic package testing system) has
+found that this package either failed to build from source - or that
+it declared some tests in its debian/tests/control and that at least
+one of these tests failed.
+';
+} else {
+ $subject= "$distro/$target: failed to install (autopkgtest)";
+ $intro= '
+An instance of autopkgtest (an automatic package testing system) has
+found that this package did not successfully install.
+';
+}
+
+$common= "
+A human has briefly looked at the transcript and concluded that the
+fault is a bug in the package or one of its build-dependencies.
+
+The test environment is an amd64 Xen guest with limited amounts of
+memory. The relevant dependencies are installed for each test but
+very few other packages.
+
+The top and bottom of the mail sent by the autopkgtest instance to its
+administrator is included below. The full log can be found at
+ http://autopkgtest.ubuntu.com/autopkgtest-output/$distro/$package/
+
+";
+
+$headers=
+"To: new\@bugs.launchpad.net
+Subject: $subject
+
+";
+
+for ($i=0; $i<7; $i++) { $top .= "| ".<>; }
+
+for (;;) {
+ defined($_= <>) or last;
+ push @bot, "| ".$_;
+ shift @bot if @bot > 50;
+}
+
+print $headers or die $!;
+
+$body= $lphead.$intro. $common. $top. "...\n". join("",@bot);
+
+open P, "|gpg -u0xc62ac3f4 --clearsign" or die $!;
+print P $body;
+$?=0; close P or die $!;
+die $? if $?;
+
+if (defined $sm) {
+ $?=0; close STDOUT or die $!;
+ die $? if $?;
+}
--- /dev/null
+#!/bin/sh
+set -e
+cd /home/iwj/public_html/autopkgtest-output
+
+#rmvia=true
+
+find * \
+ -maxdepth 2 \
+ -mindepth 2 \
+ \( \
+ -name src \
+ -o -name tmp.\* \
+ -o -type d \
+ -o -size +100k \
+ \) \
+ -mtime +3 \
+ -print0 \
+ | xargs -tr0 $rmvia rm -rf --
+
+find * \
+ -maxdepth 1 \
+ -mindepth 1 \
+ -type d \
+ -mtime +100 \
+ -print0 \
+ | xargs -tr0 $rmvia rm -rf --
+
--- /dev/null
+#!/bin/sh
+set -e
+cd adt-play
+exec >>overall.log 2>&1
+test -f go
+with-lock-ex -q nightly-lock ./lalonde-nightly max_test_count=100
--- /dev/null
+# m h dom mon dow command
+4-59/5 * * * * adt-play/cronjob
+22 0 * * Mon savelog -n7 adt-play/overall.log
+58 7 * * * adt-play/cleanup
--- /dev/null
+#!/bin/bash
+
+set -e
+
+PATH=/home/iwj/autopkgtest/runner:/usr/local/sbin:/usr/sbin:$PATH
+export PATH
+
+#any_tests_ok=false
+any_tests_ok=true
+source_tests_ok=true
+binary_tests_ok=true
+gutsy_tests_ok=true
+max_test_count=10
+go_anyway=false
+
+for x in "$@"; do eval "$x"; done
+
+fail () { printf >&2 "%s\n" "$*"; exit 127; }
+progress () { printf "========== %s ==========\n" "$1"; }
+x () { printf "+ %s\n" "$*"; "$@"; }
+x2 () { printf >&2 "+ %s\n" "$*"; "$@"; }
+
+wait_for () {
+ remain=$1; interval=$2; on_not=$3; shift;shift;shift
+ progress "await ($interval/$remain) $*"
+ while true; do
+ date
+ if "$@"; then return; fi
+ remain=$(( $remain - $interval ))
+ if [ $remain -lt 0 ]; then fail "wait timed out for $*"; fi
+ eval "$on_not"
+ sleep $interval
+ done
+}
+
+progress testing
+
+xoptslist="source gutsy, target=source:binary gutsy, target=binary-amd64"
+
+test_count=0
+
+while $any_tests_ok && ($go_anyway || test -f go) && test $test_count -lt $max_test_count; do
+ now=`date`
+ printf "%s" "$now: "
+
+ xopts="${xoptslist%%:*}"
+ xopts_opts="${xopts#*,}"
+ xoptslist="${xoptslist#*:}:$xopts"
+ printf "considering (%s) " "$xopts_opts"
+
+ anybroken=false
+ for x in ${xopts%%,*}; do
+ if eval \$${x}_tests_ok; then :; else
+ printf " skipping because of %s\n" "$x"
+ anybroken=true
+ break
+ fi
+ done
+ if $anybroken; then continue; fi
+
+ adt-testreport-onepackage /home/iwj/adt-play/onepackage-config \
+ adtrun_extra_opts=--built-binaries-filter=__ \
+ interactive=false $xopts_opts
+
+ test_count=$(( $test_count + 1 ))
+done
+
+progress 'stopping'
--- /dev/null
+cd /home/iwj/adt-play
+mirror=http://archive.ubuntu.com/ubuntu
+distro=gutsy
+suite=main
+administrator_email=iwj@ubuntu.com
+maintainer_email_override="$administrator_email"
+salutation="Ian"
+from="$salutation Jackson <iwj@ubuntu.com>"
+disable=false
+desthttphead=http://autopkgtest.ubuntu.com/
+destrsynchead=/home/iwj/public_html
+destdirtail=autopkgtest-output/$distro
+adtvirt_extra_opts=--userv
+upload_if_ok=true
+upload_if_notests=true