Skip to content

Commit c480743

Browse files
authored
Add Json test file for modules (#1271)
1 parent a956eb9 commit c480743

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/functests/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests)
3434
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSClientRealworldFuncTests.cpp
3535
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSConfigCacheFuncTests.cpp
3636
)
37+
if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json)
38+
file(COPY_FILE ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json ${CMAKE_BINARY_DIR}/test.json)
39+
endif()
3740
endif()
3841

3942
source_group(" " REGULAR_EXPRESSION "")

tests/functests/FuncTests.vcxproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,7 @@
461461
</ItemGroup>
462462
<Import Project="$(SolutionDir)\build.props" Condition="Exists('$(SolutionDir)\build.props')" />
463463
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
464-
</Project>
464+
<Target Name="CopyJson" AfterTargets="Build" Condition="exists('$(ProjectDir)..\..\lib\modules\exp\tests\functests\test.json')">
465+
<Copy SourceFiles="$(ProjectDir)..\..\lib\modules\exp\tests\functests\test.json" DestinationFolder="$(OutDir)" />
466+
</Target>
467+
</Project>

0 commit comments

Comments
 (0)