Add custom targets for specific testers. (#8653)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Mon, 25 Apr 2022 16:08:23 +0000 (11:08 -0500)
committerGitHub <noreply@github.com>
Mon, 25 Apr 2022 16:08:23 +0000 (16:08 +0000)
This adds custom targets to run a specific tester (e.g., `regress-lfsc`).

Signed-off-by: Abdalrhman M Mohamed <abdalrhman-mohamed@uiowa.edu>
test/regress/cli/CMakeLists.txt

index 212bcabca84d943a6681e91c31df1f101e3ed9d8..9dc8e67cea721d0b660a0e8d1e52b9515881cfe7 100644 (file)
@@ -3202,6 +3202,24 @@ add_custom_target(regress
     ctest --output-on-failure -L "regress[0-2]" -j${CTEST_NTHREADS} $$ARGS
   DEPENDS build-regress)
 
+set(testers
+  base
+  unsat-core
+  proof
+  lfsc
+  model
+  synth
+  abduct
+  dump
+)
+
+foreach(tester ${testers})
+  add_custom_target(regress-${tester}
+    COMMAND ${CMAKE_COMMAND} -E env RUN_REGRESSION_ARGS='--tester ${tester}'
+      ctest --output-on-failure -L "regress[0-2]" -j${CTEST_NTHREADS} $$ARGS
+    DEPENDS build-regress)
+endforeach()
+
 macro(cvc5_add_regression_test level file)
   add_test(${file}
     ${run_regress_script}