Add extcmd_test binary to gitignore and skip tests when its not available

This commit is contained in:
Johannes Meyer 2014-06-30 08:56:48 +02:00
parent 62928c48b0
commit 54f9ecb62f
2 changed files with 9 additions and 3 deletions

4
.gitignore vendored
View File

@ -10,7 +10,6 @@
!.gitkeep !.gitkeep
build/ build/
test/js/npm-debug.log
# ./configure output # ./configure output
config.log config.log
@ -20,10 +19,9 @@ config.status
Makefile Makefile
# cmd tester # cmd tester
test/php/bin/extcmd_test modules/test/bin/extcmd_test
# misc test output # misc test output
test/frontend/static/public
test/php/library/Icinga/Protocol/Statusdat/.cache test/php/library/Icinga/Protocol/Statusdat/.cache
# Generated API documentation # Generated API documentation

View File

@ -30,6 +30,14 @@ if (!defined('EXTCMD_TEST_BIN')) {
*/ */
class CommandPipeTest extends BaseTestCase class CommandPipeTest extends BaseTestCase
{ {
public function setUp()
{
parent::setUp();
if (! file_exists(EXTCMD_TEST_BIN)) {
$this->markTestSkipped('Cannot find "' . EXTCMD_TEST_BIN . '"');
}
}
/** /**
* Return the path of the test pipe used in these tests * Return the path of the test pipe used in these tests
* *