Skip modperl/modpython tests cleaner

This commit is contained in:
Alexey Sokolov
2024-02-25 14:12:53 +00:00
parent 0b28e3a834
commit f8552fc814
6 changed files with 69 additions and 50 deletions
+8 -8
View File
@@ -14,9 +14,11 @@
* limitations under the License.
*/
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "znctest.h"
#include "znctestconfig.h"
using testing::HasSubstr;
using testing::ContainsRegex;
@@ -584,10 +586,9 @@ TEST_P(AllLanguages, ServerDependentCapInModule) {
)");
break;
case 2:
if (QProcessEnvironment::systemEnvironment().value(
"DISABLED_ZNC_PERL_PYTHON_TEST") == "1") {
return;
}
#ifndef WANT_PYTHON
GTEST_SKIP() << "Modpython is disabled";
#endif
znc->CanLeak();
InstallModule("testmod.py", R"(
import znc
@@ -603,10 +604,9 @@ TEST_P(AllLanguages, ServerDependentCapInModule) {
client.Write("znc loadmod modpython");
break;
case 3:
if (QProcessEnvironment::systemEnvironment().value(
"DISABLED_ZNC_PERL_PYTHON_TEST") == "1") {
return;
}
#ifndef WANT_PERL
GTEST_SKIP() << "Modperl is disabled";
#endif
znc->CanLeak();
InstallModule("testmod.pm", R"(
package testmod;