diff --git a/projects/rccl/install.sh b/projects/rccl/install.sh index 62a22f43cf..04b900bbb2 100755 --- a/projects/rccl/install.sh +++ b/projects/rccl/install.sh @@ -123,6 +123,18 @@ check_exit_code( ) fi } +if [[ "$build_release" == true ]]; then + unit_test_path="./build/release/test/UnitTests" +else + unit_test_path="./build/debug/test/UnitTests" +fi + +if ($run_tests) && [[ -f $unit_test_path ]]; then + if [[ "$build_tests" == false ]]; then + clean_build=false + fi +fi + # ################################################# # prep # ################################################# @@ -135,7 +147,6 @@ if ($clean_build); then fi fi - # Create and go to the build directory. mkdir -p build; cd build