Skip to content

Commit 73d5612

Browse files
committed
unit test - remove tests with meshes/lfs/
1 parent dd79b49 commit 73d5612

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

premake5.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ workspace "hiprt"
195195
end
196196
defines {"__USE_HIP__"}
197197

198+
-- this define is to identify that we are on the public repository of HIPRT.
199+
-- it helps AMD to maintain both a public and a private repo for experimentation.
200+
defines {"HIPRT_PUBLIC_REPO"}
201+
198202
targetdir "dist/bin/%{cfg.buildcfg}"
199203
location "build/"
200204

test/main.cpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <map>
3232
#include <chrono>
3333

34+
#ifndef HIPRT_PUBLIC_REPO
3435
TEST_F( PerformanceTestCases, AoRayEmbreeHairball )
3536
{
3637
constexpr bool Timings = true;
@@ -48,7 +49,9 @@ TEST_F( PerformanceTestCases, AoRayEmbreeHairball )
4849
render( "AoRayHairball.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayHairball.png", Timings, AoRadius );
4950
deleteScene( m_scene );
5051
}
52+
#endif
5153

54+
#ifndef HIPRT_PUBLIC_REPO
5255
TEST_F( PerformanceTestCases, AoRayHairball )
5356
{
5457
constexpr bool Timings = true;
@@ -66,7 +69,9 @@ TEST_F( PerformanceTestCases, AoRayHairball )
6669
render( "AoRayHairball.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayHairball.png", Timings, AoRadius );
6770
deleteScene( m_scene );
6871
}
72+
#endif
6973

74+
#ifndef HIPRT_PUBLIC_REPO
7075
TEST_F( PerformanceTestCases, AoRayEmbreeBistro )
7176
{
7277
constexpr bool Timings = true;
@@ -84,7 +89,9 @@ TEST_F( PerformanceTestCases, AoRayEmbreeBistro )
8489
render( "AoRayEmbreeBistro.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayBistro.png", Timings, AoRadius );
8590
deleteScene( m_scene );
8691
}
92+
#endif
8793

94+
#ifndef HIPRT_PUBLIC_REPO
8895
TEST_F( PerformanceTestCases, AoRayBistro )
8996
{
9097
constexpr bool Timings = true;
@@ -102,7 +109,9 @@ TEST_F( PerformanceTestCases, AoRayBistro )
102109
render( "AoRayBistro.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayBistro.png", Timings, AoRadius );
103110
deleteScene( m_scene );
104111
}
112+
#endif
105113

114+
#ifndef HIPRT_PUBLIC_REPO
106115
TEST_F( PerformanceTestCases, PrimaryRayBistro )
107116
{
108117
constexpr uint32_t Option = VisualizeColor;
@@ -121,7 +130,9 @@ TEST_F( PerformanceTestCases, PrimaryRayBistro )
121130
render( "PrimaryRayBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
122131
deleteScene( m_scene );
123132
}
133+
#endif
124134

135+
#ifndef HIPRT_PUBLIC_REPO
125136
TEST_F( PerformanceTestCases, BvhFastBistro )
126137
{
127138
constexpr uint32_t Option = VisualizeColor;
@@ -140,7 +151,9 @@ TEST_F( PerformanceTestCases, BvhFastBistro )
140151
render( "BvhFastBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
141152
deleteScene( m_scene );
142153
}
154+
#endif
143155

156+
#ifndef HIPRT_PUBLIC_REPO
144157
TEST_F( PerformanceTestCases, BvhHighQBistro )
145158
{
146159
constexpr uint32_t Option = VisualizeColor;
@@ -159,7 +172,9 @@ TEST_F( PerformanceTestCases, BvhHighQBistro )
159172
render( "BvhHighQBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
160173
deleteScene( m_scene );
161174
}
175+
#endif
162176

177+
#ifndef HIPRT_PUBLIC_REPO
163178
TEST_F( PerformanceTestCases, BvhBalancedBistro )
164179
{
165180
constexpr uint32_t Option = VisualizeColor;
@@ -178,6 +193,7 @@ TEST_F( PerformanceTestCases, BvhBalancedBistro )
178193
render( "BvhBalancedBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", getTimings );
179194
deleteScene( m_scene );
180195
}
196+
#endif
181197

182198
TEST_F( ObjTestCases, TranslateCornellBox )
183199
{
@@ -2683,5 +2699,6 @@ int main( int argc, const char* argv[] )
26832699
#endif
26842700

26852701
::testing::AddGlobalTestEnvironment( new InitCommandlineArgs( parsedArgs ) );
2686-
return RUN_ALL_TESTS();
2702+
int ret = RUN_ALL_TESTS();
2703+
return ret;
26872704
}

0 commit comments

Comments
 (0)