Skip to content

Commit ac9a633

Browse files
andreeaflorescuJulian Stecklina
authored and
Julian Stecklina
committed
CI: added build tests for gnu target
The test_build cartesian product now also includes the build target. Signed-off-by: Andreea Florescu <[email protected]>
1 parent d8d4306 commit ac9a633

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/integration_tests/build/test_build.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@
1010

1111
FEATURES = ["", "vsock"]
1212
BUILD_TYPES = ["debug", "release"]
13+
TARGETS = ["x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl"]
1314

1415

1516
@pytest.mark.parametrize(
16-
"features, build_type",
17-
itertools.product(FEATURES, BUILD_TYPES)
17+
"features, build_type, target",
18+
itertools.product(FEATURES, BUILD_TYPES, TARGETS)
1819
)
19-
def test_build(test_session_root_path, features, build_type):
20-
"""
21-
Test build using a cartesian product of possible features and build
22-
types.
23-
"""
24-
extra_args = ""
2520

21+
def test_build(test_session_root_path, features, build_type, target):
22+
"""Test build using a cartesian product of possible features and build types."""
23+
extra_args = "--target {} ".format(target)
2624
if build_type == "release":
2725
extra_args += "--release "
2826

0 commit comments

Comments
 (0)