mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: fix integration test on windows
This commit is contained in:
@@ -1,16 +1,17 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
def test_default(codeql, rust):
|
||||||
|
codeql.database.create()
|
||||||
|
|
||||||
@pytest.mark.parametrize("option",
|
@pytest.mark.parametrize("features",
|
||||||
[
|
[
|
||||||
pytest.param(p,
|
pytest.param(p,
|
||||||
marks=pytest.mark.ql_test(expected=f".{e}.expected"))
|
marks=pytest.mark.ql_test(expected=f".{e}.expected"))
|
||||||
for p, e in (
|
for p, e in (
|
||||||
(None, "default"),
|
("foo", "foo"),
|
||||||
("cargo_features=foo", "foo"),
|
("bar", "bar"),
|
||||||
("cargo_features=bar", "bar"),
|
("*", "all"),
|
||||||
("cargo_features=*", "all"),
|
("foo,bar", "all"))
|
||||||
("cargo_features=foo,bar", "all"))
|
|
||||||
])
|
])
|
||||||
def test_features(codeql, rust, option):
|
def test_features(codeql, rust, features):
|
||||||
codeql.database.create(extractor_option=option)
|
codeql.database.create(extractor_option=f"cargo_features={features}")
|
||||||
|
|||||||
Reference in New Issue
Block a user