forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide an example cron script, to invite people to test.
- Loading branch information
Melvyn Sopacua
committed
Oct 23, 2002
1 parent
705766f
commit c1caad6
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
[email protected] | ||
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 | ||
|