Skip to content

Commit

Permalink
Add Json test file for modules (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
shae-brown authored May 14, 2024
1 parent a956eb9 commit c480743
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/functests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests)
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSClientRealworldFuncTests.cpp
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSConfigCacheFuncTests.cpp
)
if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json)
file(COPY_FILE ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json ${CMAKE_BINARY_DIR}/test.json)
endif()
endif()

source_group(" " REGULAR_EXPRESSION "")
Expand Down
5 changes: 4 additions & 1 deletion tests/functests/FuncTests.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,7 @@
</ItemGroup>
<Import Project="$(SolutionDir)\build.props" Condition="Exists('$(SolutionDir)\build.props')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
<Target Name="CopyJson" AfterTargets="Build" Condition="exists('$(ProjectDir)..\..\lib\modules\exp\tests\functests\test.json')">
<Copy SourceFiles="$(ProjectDir)..\..\lib\modules\exp\tests\functests\test.json" DestinationFolder="$(OutDir)" />
</Target>
</Project>

0 comments on commit c480743

Please sign in to comment.