Hi,
I just pushed this:
https://git.savannah.gnu.org/cgit/administration/savane.git/commit/?id=6fd6fe916e6daa3ce4cc5bfa5245b2364f9cdd63
====
commit 6fd6fe916e6daa3ce4cc5bfa5245b2364f9cdd63
Author: Assaf Gordon <[email protected]>
Date: Tue Mar 14 23:45:37 2017 -0400
php: add scripts for automated testing
'test' allows testing of scripts which appear as path of the URI,
testing the PATH_INFO processing (similar to e.g. '/projects/coreutils').
Typical usage:
a=$(curl https://savannah.gnu.org/test/foobar)
test "$a" = "/foobar" && echo ok || echo fail
'testing/index.php' allows testing of GET parameters and directories
with default 'index.php' processing.
Typical usage:
a=$(curl https://savannah.gnu.org/testing/index.php?foo=bar)
test "$a" = "bar" && echo ok || echo fail
b=$(curl -L https://savannah.gnu.org/testing/?foo=bar)
test "$b" = "bar" && echo ok || echo fail
frontend/php/test | 44
++++++++++++++++++++++++++++++++++++++++++++
frontend/php/testing/index.php | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
=====
This does not affect the currently running code.
It provides testing of few key PHP mechanisms that are required
for savannah's operation, as preparation for switching to nginx.
For it to work, I've modified this on frontend0:
=========
index 373534a..d6503f0 100644
--- a/apache2/sites-available/sv.inc
+++ b/apache2/sites-available/sv.inc
@@ -22,7 +22,7 @@ DocumentRoot /var/www/savane/frontend/php
DirectoryIndex index.php index.html
</Directory>
-<Files ~ "^(users|us|u|projects|pr|p|file)$">
+<Files ~ "^(users|us|u|projects|pr|p|file|test)$">
SetHandler application/x-httpd-php
</Files>
=========