mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Add Makefile for generating extcmd_test when it doesn't exist
extcmd_test contains the external-command parser from icinga-core and allows the commandpipe tests to check if the commands would be accepted by the core refs #4258
This commit is contained in:
parent
590262ebb4
commit
03ad76b739
6
test/php/Makefile
Normal file
6
test/php/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
GCC=gcc
|
||||
PROGRAM=extcmd_test
|
||||
SOURCE=${PROGRAM}.c
|
||||
|
||||
all:
|
||||
cd bin/ && gcc ${SOURCE} -o ${PROGRAM}
|
@ -6,6 +6,10 @@ SCRIPTNAME=$(readlink -f $0)
|
||||
DIR=$(dirname $SCRIPTNAME)
|
||||
PHPUNIT=$(which phpunit)
|
||||
|
||||
if [[ ! -x ./bin/extcmd_test ]]; then
|
||||
make
|
||||
fi;
|
||||
|
||||
if [[ ! -x $PHPUNIT ]]; then
|
||||
echo "PHPUnit not found!"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user