summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelvyn Sopacua <msopacua@php.net>2002-10-23 21:32:09 +0000
committerMelvyn Sopacua <msopacua@php.net>2002-10-23 21:32:09 +0000
commitc1caad685354014e6bdf17051777630b21483397 (patch)
treebb70f38a84cddbc51701eeb7b32460d38c5e731f
parent705766fd9b8ac06b71c4c9d668bf93ea89cb2db5 (diff)
downloadphp-git-c1caad685354014e6bdf17051777630b21483397.tar.gz
Provide an example cron script, to invite people to test.
-rw-r--r--README.TESTING28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.TESTING b/README.TESTING
index 1e09ea36b0..1dfafc87fc 100644
--- a/README.TESTING
+++ b/README.TESTING
@@ -104,6 +104,34 @@ of independant tests. Set the environment variable REPORT_EXIT_STATUS to 1,
and "make test" will set the exit status ("$?") to non-zero, when an
individual test has failed.
+Example script to be run by cron(1):
+========== qa-test.sh =============
+#!/bin/sh
+
+CO_DIR=$HOME/cvs/php4
+MYMAIL=qa-test@domain.com
+TMPDIR=/var/tmp
+TODAY=`date +"%Y%m%d"`
+
+# Make sure compilation enviroment is correct
+CONFIGURE_OPTS='--disable-all --enable-cli --with-pcre'
+export MAKE=gmake
+export CC=gcc
+
+# Set test environment
+export NO_INTERACTIVITY=1
+export REPORT_EXIT_STATUS=1
+
+cd $CO_DIR
+cvs update . >>$TMPDIR/phpqatest.$TODAY
+./cvsclean ; ./buildconf ; ./configure $CONFIGURE_OPTS ; $MAKE
+$MAKE test >>$TMPDIR/phpqatest.$TODAY 2>&1
+if test $? -gt 0
+then
+ cat $TMPDIR/phpqatest.$TODAY | mail -s"PHP-QA Test Failed for $TODAY" $MYMAIL
+fi
+========== end of qa-test.sh =============
+
NOTE: the exit status of run-tests.php will be 1 when
REPORT_EXIT_STATUS is set. The result of "make test" may be higher
than that. At present, gmake 3.79.1 returns 2, so it is