From 968520bfa24e33b2187302f0a3d44a7ac0caac3b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 26 Oct 2007 18:13:14 +0100 Subject: [PATCH] * hosts/magrathea/*: working setup. --- debian/changelog | 3 ++- hosts/chiark/cleanup | 29 ++++++++++++++++++++++++++++ hosts/chiark/install-on-chiark | 4 ++++ hosts/magrathea/cfg | 1 + hosts/magrathea/crontab | 12 ++++-------- hosts/magrathea/crontab.root | 3 +++ hosts/magrathea/install-on-magrathea | 1 + runner/adt-testreport-cronjob | 0 8 files changed, 44 insertions(+), 9 deletions(-) create mode 100755 hosts/chiark/cleanup create mode 100755 hosts/chiark/install-on-chiark create mode 100644 hosts/magrathea/crontab.root mode change 100644 => 100755 runner/adt-testreport-cronjob diff --git a/debian/changelog b/debian/changelog index 9790132..495ea32 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,9 @@ autopkgtest (1.2.0~) unstable; urgency=low This will break existing setups with insufficient LVM space. * adt-xenlvm-*: allow specification of LVM PVs to use. * remove spurious mkdir of empty variable $snap. + * hosts/magrathea/*: working setup. - -- + -- Ian Jackson Fri, 26 Oct 2007 17:33:40 +0100 autopkgtest (1.1.1~) unstable; urgency=low diff --git a/hosts/chiark/cleanup b/hosts/chiark/cleanup new file mode 100755 index 0000000..cb24812 --- /dev/null +++ b/hosts/chiark/cleanup @@ -0,0 +1,29 @@ +#!/bin/sh +# this is run out of chiark:~ijackson/junk/crontab.chiark + +set -e +cd /home/ijackson/public-html/autopkgtest/testing/ + +#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 -- + diff --git a/hosts/chiark/install-on-chiark b/hosts/chiark/install-on-chiark new file mode 100755 index 0000000..4f7d078 --- /dev/null +++ b/hosts/chiark/install-on-chiark @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +cd /work/AutomatedTesting/autopkgtest--main/ +rsync -a * ijackson@chiark:things/Autopkgtest/autopkgtest/. diff --git a/hosts/magrathea/cfg b/hosts/magrathea/cfg index 1777e94..f4c3adc 100644 --- a/hosts/magrathea/cfg +++ b/hosts/magrathea/cfg @@ -1,6 +1,7 @@ PATH=/home/ian/autopkgtest/runner:/usr/local/sbin:/usr/sbin:$PATH export PATH +tmp=/volatile/ian/adt-tmp mirror=http://mirror.relativity.greenend.org.uk/mirror/debian-ftp/ distro=lenny suite=main diff --git a/hosts/magrathea/crontab b/hosts/magrathea/crontab index 885709b..4fb0997 100644 --- a/hosts/magrathea/crontab +++ b/hosts/magrathea/crontab @@ -1,8 +1,4 @@ -# m h dom mon dow command -4-59/5 * * * * autopkgtest/runner/adt-testreport-cronjob adt-play cfg -22 0 * * Mon savelog -n7 adt-play/var/log adt-play/var/overall.log -58 7 * * * adt-play/cleanup - -MAILTO=iwj@ubuntu.com -# m h dom mon dow command -6-46/20 * * * * autopkgtest/runner/adt-openbugs-update adt-play cfg >/dev/null +# m h dom mon dow command +4-59/5 * * * * autopkgtest/runner/adt-testreport-cronjob adt-play cfg +5-35/30 * * * * autopkgtest/runner/adt-openbugs-update adt-play cfg >/dev/null +4 13 * * Sun savelog -c7 adt-play/var/log adt-play/var/overall.log diff --git a/hosts/magrathea/crontab.root b/hosts/magrathea/crontab.root new file mode 100644 index 0000000..c7f9e0e --- /dev/null +++ b/hosts/magrathea/crontab.root @@ -0,0 +1,3 @@ +MAILTO=ian +# m h dom mon dow user command +58 12 * * Sun root adt-xenlvm-setup --distro=lenny diff --git a/hosts/magrathea/install-on-magrathea b/hosts/magrathea/install-on-magrathea index c299796..ef2b0ea 100755 --- a/hosts/magrathea/install-on-magrathea +++ b/hosts/magrathea/install-on-magrathea @@ -2,3 +2,4 @@ set -e cd /work/AutomatedTesting/autopkgtest--main/ rsync -a . magrathea:autopkgtest/. +rsync hosts/magrathea/crontab.root root@magrathea:/etc/cron.d/autopkgtest-magrathea diff --git a/runner/adt-testreport-cronjob b/runner/adt-testreport-cronjob old mode 100644 new mode 100755 -- 2.30.2