Closed fichtner closed 6 years ago
Number of tests : 190 184
Tests skipped : 6 ( 3.2%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 3 ( 1.6%) ( 1.6%)
Tests passed : 181 ( 95.3%) ( 98.4%)
This looks good to me, although the writable_executionsimulation
skip is a bit suspicious. I'll investigate.
PASS Readonly execution attempt [tests/deny_writable_execution.phpt]
PASS Readonly execution attempt [tests/deny_writable_execution_disabled.phpt]
PASS Readonly execution attempt (simulation mode) [tests/deny_writable_execution_simulation.phpt]
It's working on my linux box, weird.
Apparently, something is really wrong.
root@:~/snuffleupagus/src # cat tests/deny_writable_execution_simulation.out
[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (/root/snuffleupagus/src/tests/deny_writable_execution_simulation.php).
[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (/root/snuffleupagus/src/tests/writable_file.txt).
[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (/root/snuffleupagus/src/tests/writable_file.txt).
Code execution within a writable file.
[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (/root/snuffleupagus/src/tests/non_writable_file.txt).
[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (/root/snuffleupagus/src/tests/non_writable_file.txt).
Code execution within a non-writable file.root@:~/snuffleupagus/src #
Hurray for ssh.
This is what you get when you're running the testsuite as root. @fichtner, can you confirm that you're doing this too?
The testsuite is failing on a significant number of tests, because the hash
module isn't builtin in FreeBSD. This can be fixed by manually adding -d "extension=/usr/local/lib/php/20160303/hash.so"
in the generated .sh
from the testsuite.
Maybe there is a better way to fix this behaviour, I don't know.
I've got a confirmation from @fichtner that he was running the testsuite as root, so everything is fine on FreeBSD from our side, hurray!
As discussed with @jvoisin
The apparent issue is that hash.so is not advertised in "tmp-php.ini", after that the test suite seems to run, see below.
Not sure how to proceed and wether the FreeBSD port needs more adjustments (e.g. for currently skipped tests).