Skip to content

Commit

Permalink
feat: refine more in standalone testing
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Sep 22, 2024
1 parent 7fcba53 commit cf3b0e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/ten_manager/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ if (ten_enable_package_manager) {
utils_static_lib_path = rebase_path("${root_gen_dir}/core/src/ten_utils")
env += [ "TEN_UTILS_LIBRARY_PATH=${utils_static_lib_path}" ]

# If the output directory of `cargo build` (tman) and
# `cargo build --tests` (tman_test) is the same, and if `cargo build` is
# executed first followed by `cargo build --tests`, the resulting
# executable will be the normal executable, not the test case executable.
# Therefore, it's necessary to separate the `target-dir` for these two
# `cargo build` commands to avoid interfering with each other.
target_path = "${root_gen_dir}/core/src/tman_test"

test_output_dir = "${root_out_dir}/tests/standalone/ten_manager"

deps = [
Expand Down

0 comments on commit cf3b0e9

Please sign in to comment.