Skip to content

Commit

Permalink
Rust/Swift: add integration tests checking env dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Tranquilli committed Jan 23, 2025
1 parent 4bd4937 commit cf430da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/ql/integration-tests/hello-project/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
9 changes: 9 additions & 0 deletions swift/ql/integration-tests/posix/hello-world/test.py
Original file line number Diff line number Diff line change
@@ -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",
})

0 comments on commit cf430da

Please sign in to comment.