Changeset 782

Show
Ignore:
Timestamp:
02/27/08 12:38:17 (9 months ago)
Author:
laurentj
Message:

add a target in the makefile to launch unit tests on jelix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix-modules/junittests/controllers/default.cmdline.php

    r781 r782  
    3838        $rep = $this->getResponse(); 
    3939 
    40         $rep->content =  
    41 'Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
     40        $rep->content = ' 
     41Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
    4242=========================================================================== 
    43  
    4443'; 
    4544 
  • trunk/lib/jelix-modules/junittests/controllers/default.cmdline.php

    r781 r782  
    3838        $rep = $this->getResponse(); 
    3939 
    40         $rep->content =  
    41 'Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
     40        $rep->content = ' 
     41Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
    4242=========================================================================== 
    43  
    4443'; 
    4544 
  • trunk/lib/jelix-modules/junittests/controllers/default.cmdline.php

    r781 r782  
    3838        $rep = $this->getResponse(); 
    3939 
    40         $rep->content =  
    41 'Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
     40        $rep->content = ' 
     41Unit Tests        php version: '.phpversion().'   Jelix version: '.JELIX_VERSION.' 
    4242=========================================================================== 
    43  
    4443'; 
    4544 
  • trunk/Makefile

    r712 r782  
    2121DOCSPATH=_docs 
    2222endif 
     23ifndef TESTS_DBPROFILES 
     24TESTS_DBPROFILES=testapp/var/config/dbprofils.ini.php.dist 
     25endif 
    2326 
    2427default: 
    2528        @echo "target:" 
    2629        @echo " nightlies : " 
    27         @echo "     généerations des packages des nightly build" 
     30        @echo "     générations des packages des nightly build" 
    2831        @echo " docs : " 
    2932        @echo "     Génération de la doc" 
     
    4346        $(PHP) build/buildfonts.php -D $(DISTPATHSWITCH) build/config/jelix-fonts-dist.ini 
    4447 
     48tests: 
     49        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
     50        $(PHP) build/buildapp.php -D $(TESTPATHSWITCH) build/config/testapp-test.ini 
     51        cd $(TESTPATH) && cp $(TESTS_DBPROFILES) testapp/var/config/dbprofils.ini.php 
     52        cd $(TESTPATH)/testapp/scripts/ && $(PHP) tests.php default:index 
     53 
    4554docs:  
    4655        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
  • trunk/Makefile

    r712 r782  
    2121DOCSPATH=_docs 
    2222endif 
     23ifndef TESTS_DBPROFILES 
     24TESTS_DBPROFILES=testapp/var/config/dbprofils.ini.php.dist 
     25endif 
    2326 
    2427default: 
    2528        @echo "target:" 
    2629        @echo " nightlies : " 
    27         @echo "     généerations des packages des nightly build" 
     30        @echo "     générations des packages des nightly build" 
    2831        @echo " docs : " 
    2932        @echo "     Génération de la doc" 
     
    4346        $(PHP) build/buildfonts.php -D $(DISTPATHSWITCH) build/config/jelix-fonts-dist.ini 
    4447 
     48tests: 
     49        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
     50        $(PHP) build/buildapp.php -D $(TESTPATHSWITCH) build/config/testapp-test.ini 
     51        cd $(TESTPATH) && cp $(TESTS_DBPROFILES) testapp/var/config/dbprofils.ini.php 
     52        cd $(TESTPATH)/testapp/scripts/ && $(PHP) tests.php default:index 
     53 
    4554docs:  
    4655        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
  • trunk/Makefile

    r712 r782  
    2121DOCSPATH=_docs 
    2222endif 
     23ifndef TESTS_DBPROFILES 
     24TESTS_DBPROFILES=testapp/var/config/dbprofils.ini.php.dist 
     25endif 
    2326 
    2427default: 
    2528        @echo "target:" 
    2629        @echo " nightlies : " 
    27         @echo "     généerations des packages des nightly build" 
     30        @echo "     générations des packages des nightly build" 
    2831        @echo " docs : " 
    2932        @echo "     Génération de la doc" 
     
    4346        $(PHP) build/buildfonts.php -D $(DISTPATHSWITCH) build/config/jelix-fonts-dist.ini 
    4447 
     48tests: 
     49        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
     50        $(PHP) build/buildapp.php -D $(TESTPATHSWITCH) build/config/testapp-test.ini 
     51        cd $(TESTPATH) && cp $(TESTS_DBPROFILES) testapp/var/config/dbprofils.ini.php 
     52        cd $(TESTPATH)/testapp/scripts/ && $(PHP) tests.php default:index 
     53 
    4554docs:  
    4655        $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini 
Download in other formats: Unified Diff Zip Archive