2014-04-09 10:42:06 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2014-04-09 10:42:06 +02:00
|
|
|
|
2023-07-04 16:41:22 +02:00
|
|
|
namespace Icinga\Test {
|
2014-04-09 10:42:06 +02:00
|
|
|
|
2023-07-04 16:41:22 +02:00
|
|
|
use Icinga\Application\Test;
|
2014-04-09 10:42:06 +02:00
|
|
|
|
2023-07-04 16:41:22 +02:00
|
|
|
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
|
|
|
|
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
|
2023-08-09 13:35:04 +02:00
|
|
|
$configPath = getenv('ICINGAWEB_CONFIGDIR') ?: $basePath . '/test/config';
|
2014-04-09 10:42:06 +02:00
|
|
|
|
2023-07-04 16:41:22 +02:00
|
|
|
require $libraryPath . '/Application/Test.php';
|
|
|
|
Test::start($basePath, $configPath);
|
2021-10-26 13:30:36 +02:00
|
|
|
}
|