From b9589f4247dfecbc9fbbc975e9231e9743cec741 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Thu, 26 Jun 2003 01:24:53 +0000 Subject: [PATCH] . svn path=/trunk/boinc/; revision=1595 --- checkin_notes | 6 ++++++ testbase | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100755 testbase diff --git a/checkin_notes b/checkin_notes index 83cbf737c3..cbc5b20630 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5063,3 +5063,9 @@ Karl 2003/06/25 test_backend.py test_concat.py test_uc.py + +Karl 2003/06/25 + - created a script to automatically run make all, check, distcheck from a + cronjob - complains if anything fails. + + ./testbase (new) diff --git a/testbase b/testbase new file mode 100755 index 0000000000..fa20a19a2d --- /dev/null +++ b/testbase @@ -0,0 +1,37 @@ +#!/bin/sh + +## $Id$ + +# Automate a clean check out, make all, check, distcheck. On error, complain +# to stdout and return 1. Suitable for a cron job. + +CHECKOUT="CVSROOT=/disks/milkyway/a/users/anderson/seti/cvsroot cvs co boinc" +TMPDIR=/tmp/testbase + +die() +{ + echo "$1" + [ "$2" ] && cat "$2" + exit 1 +} + +reqeval() +{ + eval "$1" || die "error executing: $1" +} + +reqeval_log() +{ + eval "$1" > $2 2>&1 || die "error executing: $1" $2 +} + + +reqeval "rm -rf $TMPDIR" +reqeval "mkdir -p $TMPDIR" +reqeval "cd $TMPDIR" +reqeval_log "$CHECKOUT" checkout.log +reqeval "cd boinc" +reqeval_log "./configure" configure.log +reqeval_log "make all" make_all.log +reqeval_log "make check" make_check.log +reqeval_log "make distcheck" make_distcheck.log