| [ Index ] |
PHP Cross Reference of GASELL SVN Trunk |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 # 3 # Gasell: Copyright 2007 Linux-Nantes Association <contact@gasell.org> 4 # 5 # You should have received a copy of the GNU Public 6 # License along with this package; if not, write to the 7 # Free Software Foundation, Inc., 59 Temple Place - Suite 330, 8 # Boston, MA 02111-1307, USA. 9 # 10 # Authors: Raude-Morvan Damien (DrazziB) <drazzib@drazzib.com> 11 12 source gasell-make-co.sh 13 14 # Ce script permet de lancer les test unitaires de Gasell en ligne de commande 15 # Afin de le lancer avec un autre binaire PHP que le binaire par defaut : 16 # PHP=/usr/bin/php5 ./gasell-launch-tests.sh 17 # ou 18 # PHP=/usr/bin/php4 ./gasell-launch-tests.sh 19 20 # DEBUT CONF 21 PHP=$PHP:=php5} 22 GASELL_DIR=$ROOT_DIR/data/tests/gasell 23 TESTING_DIR=$GASELL_DIR/testing 24 OUTPUT_DIR=$ROOT_DIR/htdocs/reports/$PHP 25 DSN=pgsql://gasell:gasell@localhost/gaselltests 26 # FIN CONF 27 28 # Mise en place du repertoire GASELL 29 mkdir -p $GASELL_DIR 30 rm -rf $GASELL_DIR 31 cp -Ra $CHECKOUT_DIR/trunk/gasell $GASELL_DIR 32 rm -rf $GASELL_DIR/external 33 cp -Ra /root/scripts/gasell/external $GASELL_DIR 34 35 # Creation du repertoire d'export 36 mkdir -p $OUTPUT_DIR 37 38 # Liste des fichiers de tests (sous la forme "Test1 Test2 Test3") 39 testCasesFiles=`find $TESTING_DIR -name "TestingOf*.php" -printf '%f\n' | cut -f 1 -d .` 40 41 # Chaine complete des parametres pour le test complet 42 paramsString="" 43 # Pour chacun des elements presents dans $testCasesFiles 44 for testFile in $testCasesFiles 45 do 46 # Ajout de la classe de test dans le tableau des parametres 47 paramsString="$paramsString&testing_classes[]=$testFile" 48 # Lancement du test individuel 49 $PHP -f $TESTING_DIR/index.php "dsn=$DSN}&testing_classes[]=$testFile" > $OUTPUT_DIR/report-$testFile.html 50 done 51 52 # Lancement de l'ensemble des tests 53 $PHP -f $TESTING_DIR/index.php "dsn=$DSN}$paramsString}" > $OUTPUT_DIR/report-all.html
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Jan 6 01:17:25 2009 | Cross-referenced by PHPXref 0.7 |