1111# SPDX-License-Identifier: Apache-2.0
1212# *******************************************************************************
1313load ("@score_itf//:defs.bzl" , "py_itf_test" )
14- load ("@score_itf//score/itf/plugins:plugins.bzl" , "dlt" , "docker" , "qemu" )
14+
15+ config_setting (
16+ name = "config_linux_x86_64" ,
17+ constraint_values = [
18+ "@platforms//os:linux" ,
19+ "@platforms//cpu:x86_64" ,
20+ "@score_bazel_platforms//runtime_es:posix" ,
21+ ],
22+ )
23+
24+ config_setting (
25+ name = "config_qnx_x86_64" ,
26+ constraint_values = [
27+ "@platforms//os:qnx" ,
28+ "@platforms//cpu:x86_64" ,
29+ "@score_bazel_platforms//runtime_es:posix" ,
30+ ],
31+ )
1532
1633filegroup (
1734 name = "all_tests" ,
@@ -23,48 +40,67 @@ filegroup(
2340)
2441
2542py_itf_test (
26- name = "linux_x86_64 " ,
43+ name = "itf " ,
2744 srcs = [
2845 ":all_tests" ,
2946 ],
30- args = [
31- "--dlt-config=$(location //feature_integration_tests/configs:dlt_config_x86_64.json)" ,
32- "--docker-image-bootstrap=$(location //images/linux_x86_64:image_tarball)" ,
33- "--docker-image=score_showcases:latest" ,
34- ],
35- data = [
36- "//feature_integration_tests/configs:dlt_config_x86_64.json" ,
37- "//images/linux_x86_64:image_tarball" ,
38- ],
39- plugins = [
40- dlt ,
41- docker ,
47+ args = select (
48+ {
49+ ":config_linux_x86_64" : [
50+ "--dlt-config=$(location //feature_integration_tests/configs:dlt_config_x86_64.json)" ,
51+ "--docker-image-bootstrap=$(location //images/linux_x86_64:image_load)" ,
52+ "--docker-image=score_showcases:latest" ,
53+ ],
54+ ":config_qnx_x86_64" : [
55+ "--dlt-config=$(location //feature_integration_tests/configs:dlt_config_qnx_x86_64.json)" ,
56+ "--qemu-config=$(location //feature_integration_tests/configs:qemu_bridge_config.json)" ,
57+ "--qemu-image=$(location //images/qnx_x86_64:image)" ,
58+ ],
59+ },
60+ no_match_error = "Unsupported platform" ,
61+ ),
62+ data = select ({
63+ ":config_linux_x86_64" : [
64+ "//feature_integration_tests/configs:dlt_config_x86_64.json" ,
65+ "//images/linux_x86_64:image_load" ,
66+ ],
67+ ":config_qnx_x86_64" : [
68+ "//feature_integration_tests/configs:dlt_config_qnx_x86_64.json" ,
69+ "//feature_integration_tests/configs:qemu_bridge_config.json" ,
70+ "//images/qnx_x86_64:image" ,
71+ ],
72+ }),
73+ plugins = select (
74+ {
75+ ":config_linux_x86_64" : [
76+ "@score_itf//score/itf/plugins:dlt_plugin" ,
77+ "@score_itf//score/itf/plugins:docker_plugin" ,
78+ ],
79+ ":config_qnx_x86_64" : [
80+ "@score_itf//score/itf/plugins:dlt_plugin" ,
81+ "@score_itf//score/itf/plugins:qemu_plugin" ,
82+ ],
83+ },
84+ no_match_error = "Unsupported platform" ,
85+ ),
86+ tags = [
87+ "manual" ,
4288 ],
89+ )
90+
91+ # Backward compatible aliases for CI jobs - these should be removed once the CI jobs are updated to use the new target names
92+ test_suite (
93+ name = "linux_x86_64" ,
4394 tags = [
4495 "manual" ,
4596 ],
97+ tests = [":itf" ],
4698)
4799
48- py_itf_test (
100+ test_suite (
49101 name = "qnx_x86_64" ,
50- srcs = [
51- ":all_tests" ,
52- ],
53- args = [
54- "--dlt-config=$(location //feature_integration_tests/configs:dlt_config_qnx_x86_64.json)" ,
55- "--qemu-config=$(location //feature_integration_tests/configs:qemu_bridge_config.json)" ,
56- "--qemu-image=$(location //images/qnx_x86_64:image)" ,
57- ],
58- data = [
59- "//feature_integration_tests/configs:dlt_config_qnx_x86_64.json" ,
60- "//feature_integration_tests/configs:qemu_bridge_config.json" ,
61- "//images/qnx_x86_64:image" ,
62- ],
63- plugins = [
64- dlt ,
65- qemu ,
66- ],
67102 tags = [
68103 "manual" ,
69104 ],
105+ tests = [":itf" ],
70106)
0 commit comments