2014-04-09 04:42:06 -04:00
|
|
|
<?php
|
2026-03-26 12:46:27 -04:00
|
|
|
|
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2014-04-09 04:42:06 -04:00
|
|
|
|
2023-07-04 10:41:22 -04:00
|
|
|
namespace Icinga\Test {
|
2014-04-09 04:42:06 -04:00
|
|
|
|
2023-07-04 10:41:22 -04:00
|
|
|
use Icinga\Application\Test;
|
2014-04-09 04:42:06 -04:00
|
|
|
|
2023-07-04 10:41:22 -04:00
|
|
|
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
|
|
|
|
|
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
|
2023-08-09 07:35:04 -04:00
|
|
|
$configPath = getenv('ICINGAWEB_CONFIGDIR') ?: $basePath . '/test/config';
|
2014-04-09 04:42:06 -04:00
|
|
|
|
2023-07-04 10:41:22 -04:00
|
|
|
require $libraryPath . '/Application/Test.php';
|
|
|
|
|
Test::start($basePath, $configPath);
|
2021-10-26 07:30:36 -04:00
|
|
|
}
|