1010#
1111# SPDX-License-Identifier: Apache-2.0
1212# *******************************************************************************
13- load ("@pip_score_venv_test//:requirements.bzl" , "all_requirements" )
14- load ("@score_tooling//:defs.bzl" , "score_py_pytest" )
13+ load ("@score_itf//:defs.bzl" , "py_itf_test" )
1514load ("//config:flatbuffers_rules.bzl" , "flatbuffer_json_to_bin" )
15+ load ("//tests/utils/bazel:integration.bzl" , "integration_test" )
16+ load ("//tests/utils/bazel:package_test_binaries.bzl" , "package_test_binaries" )
1617
1718flatbuffer_json_to_bin (
1819 name = "test_lm_cfg" ,
@@ -36,7 +37,7 @@ cc_binary(
3637 deps = [
3738 "//src/control_client_lib" ,
3839 "//src/launch_manager_daemon/lifecycle_client_lib:lifecycle_client" ,
39- "//tests/integration: test_helper" ,
40+ "//tests/utils/ test_helper" ,
4041 "@googletest//:gtest_main" ,
4142 ],
4243)
@@ -47,27 +48,27 @@ cc_binary(
4748 deps = [
4849 "//src/control_client_lib" ,
4950 "//src/launch_manager_daemon/lifecycle_client_lib:lifecycle_client" ,
50- "//tests/integration: test_helper" ,
51+ "//tests/utils/ test_helper" ,
5152 "@googletest//:gtest_main" ,
5253 ],
5354)
5455
55- score_py_pytest (
56+ package_test_binaries (
57+ name = "smoke_binaries" ,
58+ test_name = "smoke" ,
59+ binaries = {
60+ "//src/launch_manager_daemon:launch_manager" : "" ,
61+ ":control_daemon_mock" : "" ,
62+ ":gtest_process" : "" ,
63+ ":test_lm_cfg" : "etc" ,
64+ ":test_hm_cfg" : "etc" ,
65+ },
66+ )
67+
68+ integration_test (
5669 name = "smoke" ,
57- srcs = [
58- "smoke.py" ,
59- ],
60- args = [
61- ],
62- data = [
63- ":control_daemon_mock" ,
64- ":gtest_process" ,
65- "//src/launch_manager_daemon:launch_manager" ,
66- ],
67- tags = [
68- "integration" ,
69- ],
70- deps = all_requirements + [
71- "//tests/integration:testing_utils" ,
72- ],
70+ srcs = ["smoke.py" ],
71+ test_binaries = ":smoke_binaries" ,
72+ deps = ["//tests/utils/testing_utils" ],
73+ tags = ["integration" ],
7374)
0 commit comments