From 57b2248f8a3debdb435146df7f786c97a791229a Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Thu, 7 Mar 2024 15:28:27 +0800 Subject: [PATCH] =?UTF-8?q?>=20configure(npc)=20=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20=20Linux=20calcite=206.6.19=20#1-?= =?UTF-8?q?NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Mar=20=201=2012:35:11?= =?UTF-8?q?=20UTC=202024=20x86=5F64=20GNU/Linux=20=20=2015:28:27=20=20up?= =?UTF-8?q?=20=20=200:47,=20=202=20users,=20=20load=20average:=201.10,=200?= =?UTF-8?q?.97,=200.99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/npc/CMakeLists.txt b/npc/CMakeLists.txt index ead1658..3c5d300 100644 --- a/npc/CMakeLists.txt +++ b/npc/CMakeLists.txt @@ -83,8 +83,15 @@ foreach(TOPMODULE IN LISTS TOPMODULES) add_dependencies(V${TOPMODULE} ChiselBuild_${TOPMODULE}) enable_testing() - add_test(NAME V${TOPMODULE}_test COMMAND V${TOPMODULE}) - set_tests_properties(V${TOPMODULE}_test PROPERTIES DEPENDS V${TOPMODULE}) + add_test(V${TOPMODULE}_build + "${CMAKE_COMMAND}" + --build "${CMAKE_BINARY_DIR}" + --config "$" + --target V${TOPMODULE} + ) + set_tests_properties(V${TOPMODULE}_build PROPERTIES FIXTURES_SETUP V${TOPMODULE}_fixture) + add_test(NAME V${TOPMODULE} COMMAND V${TOPMODULE}) + set_tests_properties(V${TOPMODULE} PROPERTIES FIXTURES_REQUIRED V${TOPMODULE}_fixture) # -- Add build tracking add_custom_command(