Skip to content

Commit 31979ae

Browse files
authored
[None] [ci] Reorganize CMake and Python integration test infrastructure for C++ tests (#6754)
Signed-off-by: Robin Kobus <[email protected]>
1 parent 0680566 commit 31979ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+259
-233
lines changed

cpp/tests/CMakeLists.txt

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,32 +69,6 @@ function(add_gtest test_name test_src)
6969
add_dependencies(google-tests ${test_name})
7070
endfunction()
7171

72-
add_subdirectory(unit_tests)
73-
74-
add_gtest(mpiUtilsTest runtime/mpiUtilsTest.cpp)
75-
76-
add_gtest(gptDecoderTest runtime/gptDecoderTest.cpp)
77-
add_gtest(gptDecoderBatchedTest runtime/gptDecoderBatchedTest.cpp)
78-
add_gtest(medusaModuleTest runtime/medusaModuleTest.cpp)
79-
80-
add_gtest(moeLoadBalancerTest runtime/moeLoadBalancerTest.cpp)
81-
82-
add_gtest(sanitizerTest runtime/sanitizerTest.cpp)
83-
84-
add_gtest(eaglePackDataTest kernels/eaglePackDataTest.cpp)
85-
86-
add_gtest(medusaDecodeLayerTest layers/medusaDecodeLayerTest.cpp)
87-
88-
add_gtest(moeLoadBalanceKernelTest kernels/moeLoadBalanceKernelTest.cpp)
89-
90-
add_gtest(eagleLayerTest layers/eagleLayerTest.cpp)
91-
9272
add_subdirectory(utils)
93-
94-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/batch_manager)
95-
add_subdirectory(batch_manager)
96-
endif()
97-
98-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/executor)
99-
add_subdirectory(executor)
100-
endif()
73+
add_subdirectory(unit_tests)
74+
add_subdirectory(e2e_tests)

cpp/tests/e2e_tests/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION &
2+
# AFFILIATES. All rights reserved. SPDX-License-Identifier: NVIDIA TensorRT
3+
# Source Code License Agreement
4+
#
5+
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6+
# property and proprietary rights in and to this material, related documentation
7+
# and any modifications thereto. Any use, reproduction, disclosure or
8+
# distribution of this material and related documentation without an express
9+
# license agreement from NVIDIA CORPORATION or its affiliates is strictly
10+
# prohibited.
11+
12+
add_subdirectory(batch_manager)
13+
add_subdirectory(executor)

cpp/tests/batch_manager/CMakeLists.txt renamed to cpp/tests/e2e_tests/batch_manager/CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
# license agreement from NVIDIA CORPORATION or its affiliates is strictly
1010
# prohibited.
1111

12-
add_gtest(cacheTransceiverTest cacheTransceiverTest.cpp)
13-
12+
# guidedDecoderTest requires model tokenizer info, so it's easier to run it with
13+
# e2e tests instead of unit tests.
14+
add_gtest(guidedDecoderTest guidedDecoderTest.cpp)
15+
add_gtest(trtEncoderModelTest trtEncoderModelTest.cpp)
1416
add_gtest(trtGptModelTest trtGptModelTest.cpp)
1517
add_gtest(trtGptModelRealDecoderTest trtGptModelRealDecoderTest.cpp)
1618
target_link_libraries(trtGptModelRealDecoderTest PRIVATE testingUtils)
17-
18-
add_gtest(peftCacheManagerTest peftCacheManagerTest.cpp)
19-
add_gtest(trtEncoderModelTest trtEncoderModelTest.cpp)
20-
add_gtest(guidedDecoderTest guidedDecoderTest.cpp)
21-
add_gtest(blockKeyTest blockKeyTest.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cpp/tests/executor/disaggExecutorTest.cpp renamed to cpp/tests/e2e_tests/executor/disaggExecutorTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ INSTANTIATE_TEST_SUITE_P(LlamaCon2TP1Gen1TP2PP2DisaaggOrchestrator, DisaggOrches
14051405
),
14061406
generateTestNameDisaggParams);
14071407

1408-
INSTANTIATE_TEST_SUITE_P(LlamaCon2TP2Gen2TP1DisaaggSpawnOrchestrator, DisaggOrchestratorParamsTest,
1408+
INSTANTIATE_TEST_SUITE_P(LlamaCon2TP2Gen2TP1DisaggSpawnOrchestrator, DisaggOrchestratorParamsTest,
14091409
testing::Combine( //
14101410
testing::Values(1), // processNum
14111411
testing::Values(
@@ -1418,7 +1418,7 @@ INSTANTIATE_TEST_SUITE_P(LlamaCon2TP2Gen2TP1DisaaggSpawnOrchestrator, DisaggOrch
14181418
),
14191419
generateTestNameDisaggParams);
14201420

1421-
INSTANTIATE_TEST_SUITE_P(LlamaCon2TP1Gen2PP2DisaaggSpawnOrchestrator, DisaggOrchestratorParamsTest,
1421+
INSTANTIATE_TEST_SUITE_P(LlamaCon2TP1Gen2PP2DisaggSpawnOrchestrator, DisaggOrchestratorParamsTest,
14221422
testing::Combine( //
14231423
testing::Values(1), // processNum
14241424
testing::Values(

0 commit comments

Comments
 (0)