File tree 1 file changed +9
-8
lines changed
tests/integration_tests/build 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 10
10
11
11
FEATURES = ["" , "vsock" ]
12
12
BUILD_TYPES = ["debug" , "release" ]
13
+ TARGETS = ["x86_64-unknown-linux-gnu" , "x86_64-unknown-linux-musl" ]
13
14
14
15
15
16
@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 )
18
19
)
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 = ""
20
+ def test_build (test_session_root_path , features , build_type , target ):
21
+ """Test build under different scenarios.
25
22
23
+ This will generate build tests using the cartesian product of all
24
+ features, build types (release/debug) and build targets (musl/gnu).
25
+ """
26
+ extra_args = "--target {} " .format (target )
26
27
if build_type == "release" :
27
28
extra_args += "--release "
28
29
You can’t perform that action at this time.
0 commit comments