We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cleanup
1 parent a8b3a37 commit a9736eaCopy full SHA for a9736ea
Examples/CMakeLists.txt
@@ -198,7 +198,7 @@ function(add_warpx_test
198
if(WarpX_TEST_CLEANUP)
199
add_test(
200
NAME ${name}.cleanup
201
- COMMAND ${CMAKE_COMMAND} -E rm -rf ${THIS_WORKING_DIR}
+ COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/Examples/test_cleanup.cmake ${THIS_WORKING_DIR}
202
)
203
# test cleanup depends on test run
204
set_property(TEST ${name}.cleanup APPEND PROPERTY DEPENDS "${name}.run")
Examples/test_cleanup.cmake
@@ -0,0 +1,7 @@
1
+# delete all test files except backtrace
2
+file(GLOB test_files ${CMAKE_ARGV3}/*)
3
+foreach(file ${test_files})
4
+ if(NOT ${file} MATCHES "Backtrace*")
5
+ execute_process(COMMAND ${CMAKE_COMMAND} -E rm -r ${file})
6
+ endif()
7
+endforeach()
0 commit comments