CC-5651: Unit Test the Scheduler

* Added runtests.sh script for unit tests
* Use the airtime_test database config in Config.php, propel
* First unit test passes! :-)
This commit is contained in:
Albert Santoni 2013-12-19 16:58:11 -05:00 committed by drigato
parent 72da8be2f2
commit fe9beec778
5 changed files with 21 additions and 9 deletions

View file

@ -18,8 +18,13 @@ class Config {
"rootDir" => __DIR__."/../.."
);
$filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
//In the unit testing environment, we always want to use our local airtime.conf in airtime_mvc/application/test:
if (getenv('AIRTIME_UNIT_TEST') == '1') {
$filename = "airtime.conf";
} else {
$filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
}
$values = parse_ini_file($filename, true);
// Name of the web server user