Commit 556e6a43 authored by Franco Fichtner's avatar Franco Fichtner

make: add `test' target wrapper

Whitelisting in Suhosin is needed to make this work, but
unfortunately this will disable whitelisting for all of
phar.  A pretty debatable design choice, but for now we
keep this on -devel until we know what to do...
parent 7960bace
...@@ -321,6 +321,10 @@ health: force ...@@ -321,6 +321,10 @@ health: force
# check test script output and advertise a failure... # check test script output and advertise a failure...
[ "`${.CURDIR}/src/etc/rc.php_test_run`" == "FCGI-PASSED PASSED" ] [ "`${.CURDIR}/src/etc/rc.php_test_run`" == "FCGI-PASSED PASSED" ]
test: want-phpunit
@cd ${.CURDIR}/src/opnsense/mvc/tests && \
phpunit --configuration PHPunit.xml
clean: want-git clean: want-git
${GIT} reset --hard HEAD && ${GIT} clean -xdqf . ${GIT} reset --hard HEAD && ${GIT} clean -xdqf .
......
...@@ -157,6 +157,7 @@ suhosin.request.max_vars = 5000 ...@@ -157,6 +157,7 @@ suhosin.request.max_vars = 5000
suhosin.request.max_value_length = 9000000 suhosin.request.max_value_length = 9000000
suhosin.memory_limit = 512435456 suhosin.memory_limit = 512435456
suhosin.session.cryptdocroot=Off suhosin.session.cryptdocroot=Off
suhosin.executor.include.whitelist = phar://
EOF EOF
# Copy php.ini file to etc/ too (cli) # Copy php.ini file to etc/ too (cli)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment