Re: Automatic sending of make test

From: Date: Mon, 22 Jun 2009 13:20:17 +0000
Subject: Re: Automatic sending of make test
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65122@lists.php.net to get a copy of this message
you can shell script it, so it alerts you when finishing make tests. Since I'm not a shell programmer, this script can do with a lot of improvements !!! But it's a start, right ;-) -- begin contens of ALERTSCRIPT -- #!/bin/sh # # Simple script to run tests and alert me when done # # Requires manual installation of latest php snapshot in PHPDIR directory # PHPDIR=/home/mike/dev/php/php_5_3 ALERTMAIL=/home/mike/dev/php/alert.msg MAIL=/usr/bin/sendmail cd $PHPDIR ./configure --enable-gcov make make test $MAIL -t < $ALERTMAIL -- end contens of ALERTSCRIPT -- -- begin contents of ALERTMAIL -- to:recipient@somewhere.com <to%3Arecipient@somewhere.com> from:you@yourdomain.com <from%3Ayou@yourdomain.com> subject:[PHPTEST] make test has finished with or without errors, please check Just completed my "make test" run, with or without errors -- end contents of ALERTMAIL -- On Fri, Jun 19, 2009 at 12:37 PM, Olivier Doucet <webmaster@ajeux.com>wrote: > Hello everyone, > > I was looking for a way to specify my email address on command line for > "make test", so that the script can send the report automatically at the > end. It can be useful to make automatic builds and tests for example. > > Does this feature exists or not yet ? > > Olivier >

« previous php.qa (#65122) next »