Rust/Swift: add integration tests checking env dumping

This commit is contained in:
Paolo Tranquilli
2025-01-23 09:15:54 +01:00
parent 4bd4937e65
commit cf430da602
2 changed files with 15 additions and 0 deletions

View File

@@ -8,3 +8,9 @@ def test_cargo(codeql, rust, cargo, check_source_archive, rust_check_diagnostics
@pytest.mark.ql_test("steps.ql", expected=".rust-project.expected")
def test_rust_project(codeql, rust, rust_project, check_source_archive, rust_check_diagnostics):
codeql.database.create()
@pytest.mark.ql_test(None)
def test_do_not_print_env(codeql, rust, cargo, check_env_not_dumped, rust_check_diagnostics):
codeql.database.create(_env={
"CODEQL_EXTRACTOR_RUST_VERBOSE": "2",
})

View File

@@ -1,6 +1,15 @@
import pytest
import runs_on
@runs_on.posix
def test(codeql, swift):
codeql.database.create(command="swift build")
@runs_on.posix
@pytest.mark.ql_test(None)
def test_do_not_print_env(codeql, swift, check_env_not_dumped):
codeql.database.create(command="swift build", _env={
"CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS": "out:text:trace",
})