From c1b46d2814fc5fa3390734132ef648bf6c9f86fc Mon Sep 17 00:00:00 2001 From: Stefan Saenger Date: Sun, 12 Jul 2026 16:44:54 +0200 Subject: [PATCH] revert: keep run-tests.sh with per-file pytest invocations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert to the original per-file invocation style — it allows running tests selectively by commenting out individual lines. Part-of: --- run-tests.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 7f9e57c..7b489d2 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -1,16 +1,8 @@ #!/bin/bash # -# Run the testsuite against an external (non-compose) Prosody deployment. -# -# Unlike run-compose-tests.sh (which brings up its own stack), this script -# points at an already-running server. Tests that need compose-specific -# infrastructure (docker exec, MOCK_URL, low smacks_hibernation_time) will -# skip automatically. -# -set -euo pipefail export XMPP_HOST=xmpp.microlab.zimbra-vnc.de -export XMPP_PORT=30522 +export XMPP_PORT=30522 export XMPP_JID=lisa.porter@microlab.zimbra-vnc.de export XMPP_PASSWORD=q3tx65test export XMPP_JID2=richard.watson@microlab.zimbra-vnc.de @@ -30,4 +22,18 @@ export PG_DB=prosody export PG_USER=prosody export PG_PASSWORD=eS5Gi7ahzo3chaiXiel0ief -pytest tests/ -v -c tests/pytest.ini +pytest tests/test_01_core.py -v -c tests/pytest.ini +pytest tests/test_02_muc.py -v -c tests/pytest.ini +pytest tests/test_03_vnctalk.py -v -c tests/pytest.ini +pytest tests/test_04_infra.py -v -c tests/pytest.ini +pytest tests/test_05_patches.py -v -c tests/pytest.ini +pytest tests/test_06_postgres.py -v -c tests/pytest.ini +pytest tests/test_07_module_load.py -v -c tests/pytest.ini +pytest tests/test_08_image_patches.py -v -c tests/pytest.ini +pytest tests/test_09_http_sideeffects.py -v -c tests/pytest.ini +pytest tests/test_10_smacks.py -v -c tests/pytest.ini +pytest tests/test_11_smokes.py -v -c tests/pytest.ini +pytest tests/test_12_image_runtime.py -v -c tests/pytest.ini + +# Or run the whole suite at once: +# pytest tests/ -v -c tests/pytest.ini