svn commit: r1936272 - in httpd/httpd/branches/2.4.x: . test
[email protected] Fri, 17 Jul 2026 16:04:01 -0000
| Newsgroups | gmane.comp.apache.cvs |
|---|---|
| Message-ID | <178430424146.3907342.7887217005330633852@svn03-he-fi> |
Author: jim
Date: Fri Jul 17 16:04:01 2026
New Revision: 1936272
Log:
Trunk test parity
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/test/Makefile.in
httpd/httpd/branches/2.4.x/test/README.pytest
httpd/httpd/branches/2.4.x/test/conftest.py
httpd/httpd/branches/2.4.x/test/make_sni.sh
Modified: httpd/httpd/branches/2.4.x/test/Makefile.in
==============================================================================
--- httpd/httpd/branches/2.4.x/test/Makefile.in Fri Jul 17 15:56:06 2026 (r1936271)
+++ httpd/httpd/branches/2.4.x/test/Makefile.in Fri Jul 17 16:04:01 2026 (r1936272)
@@ -21,6 +21,7 @@ test: $(bin_PROGRAMS)
clean:
rm -rf gen
+ find . -name __pycache__ | xargs rm -rf
distclean:
- rm -f pyhttpd/config.ini
\ No newline at end of file
+ rm -f pyhttpd/config.ini
Modified: httpd/httpd/branches/2.4.x/test/README.pytest
==============================================================================
--- httpd/httpd/branches/2.4.x/test/README.pytest Fri Jul 17 15:56:06 2026 (r1936271)
+++ httpd/httpd/branches/2.4.x/test/README.pytest Fri Jul 17 16:04:01 2026 (r1936272)
@@ -127,9 +127,9 @@ processes (an ACME test server).
Infrastructure
--------------
-The test cases rely on the classes provided in 'test/pyhttpd'
-for common code in managing a httpd test instance and do
-provide some base setups:
+The test cases rely on the classes provided in `test/pyhttpd/` (where
+`test/pyhttpd/runtests.sh` runs the suite) for common code in managing
+a httpd test instance and do provide some base setups:
- a small set of virtual hosts with some files
- access to paths and definitions (env fixture)
- start/stop httpd and inspect the error log
Modified: httpd/httpd/branches/2.4.x/test/conftest.py
==============================================================================
--- httpd/httpd/branches/2.4.x/test/conftest.py Fri Jul 17 15:56:06 2026 (r1936271)
+++ httpd/httpd/branches/2.4.x/test/conftest.py Fri Jul 17 16:04:01 2026 (r1936272)
@@ -23,9 +23,25 @@ def pytest_generate_tests(metafunc):
metafunc.fixturenames.append('tmp_ct')
metafunc.parametrize('repeat', range(count))
+
@pytest.fixture(autouse=True, scope="function")
def _function_scope(env, request):
env.set_current_test_name(request.node.name)
yield
+ env.check_error_log()
env.set_current_test_name(None)
+
[email protected](autouse=True, scope="module")
+def _module_scope(env):
+ yield
+ env.check_error_log()
+
+
[email protected](autouse=True, scope="package")
+def _package_scope(env):
+ env.httpd_error_log.clear_ignored_matches()
+ env.httpd_error_log.clear_ignored_lognos()
+ yield
+ assert env.apache_stop() == 0
+ env.check_error_log()
Modified: httpd/httpd/branches/2.4.x/test/make_sni.sh
==============================================================================
--- httpd/httpd/branches/2.4.x/test/make_sni.sh Fri Jul 17 15:56:06 2026 (r1936271)
+++ httpd/httpd/branches/2.4.x/test/make_sni.sh Fri Jul 17 16:04:01 2026 (r1936272)
@@ -90,7 +90,7 @@ if [ $# -gt 0 ]; then
NAMES=$*
fi
-if ! openssl version | grep -q OpenSSL; then
+if ! openssl version | grep -Eq 'LibreSSL|OpenSSL'; then
echo Aborted - your openssl is very old or misconfigured.
exit 1
fi