Changeset 30

Show
Ignore:
Timestamp:
09/22/07 06:23:10 (1 year ago)
Author:
bermi
Message:

Fixing testing_config.php file to pass unit tests.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/install.php

    r23 r30  
    267267if(preg_match('/builds\/(.+)\.zip/', $build_serults, $match)){ 
    268268    echo "Will use {$match[1]}\n"; 
     269    $options['build_name'] = $match[1]; 
    269270} 
    270271 
  • trunk/build/makelos.php

    r20 r30  
    3636 
    3737echo "Exporting Editam.\n"; 
    38 system("svn export ../src ".AK_TMP_DIR."/$version_tag"); 
     38empty($prefix) ? system("svn export ../src ".AK_TMP_DIR."/$version_tag") : system("cp -R ../src ".AK_TMP_DIR."/$version_tag"); 
    3939 
    4040echo "Adding the Akelos Framework.\n"; 
    41 system("svn export ".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos"); 
     41empty($prefix) ? system("svn export ".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos") : system("cp -R ".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos"); 
    4242 
    4343echo "Removing unnecesary Akelos Framework files.\n"; 
  • trunk/build/testing_config.php

    r28 r30  
    22 
    33/** 
     4* WARNING USING THIS CONFIGURATION FILE WITHOUT KNOWING WHAT IS GOING ON IS A DANGEROUS, 
     5* DONT USE THIS FILE UNLESS YOU KNOW WHAT IS IT FOR 
     6* 
    47* This is a sample configuration file for setting up an Editam application and running its unit tests 
    58* 
     
    4245mysql_query("CREATE DATABASE {$options['testing_database_name']};"); 
    4346 
    44 // Uncomment this for avoiding manual config/config.php removal 
    45 // (`rm -rf {$options['path']}`); 
     47(`rm -rf {$options['path']}`); 
    4648 
    4749function after_editam_install($options) 
    4850{ 
    49     echo "Finished setting up the application running unit tests now."; 
     51    mysql_query("DROP DATABASE {$options['testing_database_name']};"); 
     52    mysql_query("CREATE DATABASE {$options['testing_database_name']};"); 
     53     
     54    echo "Removing generated builds\n"; 
     55    (`rm -rf builds/{$options['build_name']}*`); 
     56         
     57    echo "Finished setting up the application running unit tests now.\n"; 
    5058    chdir($options['path'].'/includes/editam'); 
    51     echo system('./script/test unit'); 
     59    system('./script/test unit'); 
    5260} 
    5361 
  • trunk/src/includes/editam/installers/editam_installer.php

    r13 r30  
    257257    function uninstallProfiles($version, $profiles) 
    258258    { 
    259         $this->_installOrUninstallProfile('install', $version, $profiles); 
     259        $this->_installOrUninstallProfile('uninstall', $version, $profiles); 
    260260    } 
    261261