Skip to content

Commit bac0c59

Browse files
committed
tests: properly disable parameterized tests in CI
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]> test: properly disabling parameterized tests Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]> Update config.yml Fix issue with CMake build
1 parent fd8f6b2 commit bac0c59

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ jobs:
12381238
platform: "x86_64"
12391239
cudnn-version: << parameters.cudnn-version >>
12401240
trt-version-short: << parameters.trt-version-short >>
1241-
bazel-platform: "x86_64"
1241+
bazel-platform: "amd64"
12421242
- install-cmake:
12431243
version: 3.24.1
12441244
- install-torch-from-index:

tests/cpp/test_compiled_modules.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ TEST_P(CppAPITests, CompiledModuleIsClose) {
4545
}
4646
}
4747

48-
#ifndef DISABLE_TEST_IN_CI
48+
#ifdef DISABLE_TEST_IN_CI
49+
50+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);
51+
52+
#else
4953

5054
INSTANTIATE_TEST_SUITE_P(
5155
CompiledModuleForwardIsCloseSuite,

tests/cpp/test_modules_as_engines.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ TEST_P(CppAPITests, ModuleAsEngineIsClose) {
1717
ASSERT_TRUE(torch_tensorrt::tests::util::cosineSimEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0])));
1818
}
1919

20-
#ifndef DISABLE_TEST_IN_CI
20+
#ifdef DISABLE_TEST_IN_CI
21+
22+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);
23+
24+
#else
2125

2226
INSTANTIATE_TEST_SUITE_P(
2327
ModuleAsEngineForwardIsCloseSuite,

0 commit comments

Comments
 (0)