perl-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject getting httpd-equivalent version numbers from servers with non-standard version strings
Date Sun, 01 Dec 2013 17:06:13 GMT
httpd_version() in TestConfigParse.pm calls "httpd -v" to get the version
string, and it needs to find "Apache/x.y.z" in the right place so that
other code will be happy.  (E.g., need_min_apache_version and
need_apache_version in Test.pm)

Servers based on Apache httpd may not say "Apache" at all there, and may
not use the httpd version string anyway.

What would be an appropriate way to override the automatically-determined
version when testing with a server based on Apache httpd but without a
version string that is parseable with the current logic?

HTTPD_EQUIV_VERSION_STR="Apache/2.2.19" runtest.sh

or

runtest.sh -httpd_ver "Apache/2.2.19" (and have ApacheTest users pass that
down somehow)

or

(something else)

Thanks for any hints!


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message