diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 18f9b3fbe0..d1ac4feea3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -141,12 +141,13 @@ if(BUILD_TESTS) AltRsmiTests.cpp AllocTests.cpp ArgCheckTests.cpp + BitOpsTests.cpp IpcsocketTests.cpp CollRegTests.cpp + CommTests.cpp + P2pTests.cpp RcclWrapTests.cpp ShmTests.cpp - P2pTests.cpp - BitOpsTests.cpp TransportTests.cpp common/main_fixtures.cpp common/EnvVars.cpp diff --git a/test/CommTests.cpp b/test/CommTests.cpp new file mode 100644 index 0000000000..e01291717a --- /dev/null +++ b/test/CommTests.cpp @@ -0,0 +1,26 @@ +/************************************************************************* + * Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved. + * + * See LICENSE.txt for license information + ************************************************************************/ +#include "gtest/gtest.h" +#include "comm.h" + + + +namespace RcclUnitTesting +{ + TEST(CommTests, Sorter) + { + // Configuration + ncclTaskCollSorter* me_ptr = new ncclTaskCollSorter; + me_ptr->head = nullptr; + + ASSERT_EQ(ncclTaskCollSorterEmpty(me_ptr), true); + delete me_ptr; + } +} + + + +