endforeach()
macro(cvc5_add_regression_test level file)
+ set(wrapper )
+ if(CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL "Windows")
+ # Make wineserver persistent for 60 seconds (this is for better
+ # performance)
+ set(wrapper "wine -p=60")
+ endif()
+
add_test(${file}
${run_regress_script}
${RUN_REGRESSION_ARGS}
--lfsc-binary ${CMAKE_SOURCE_DIR}/deps/bin/lfscc
--lfsc-sig-dir ${CMAKE_SOURCE_DIR}/proofs/lfsc/signatures
- ${path_to_cvc5}/cvc5
+ ${wrapper}
+ ${path_to_cvc5}/cvc5${CMAKE_EXECUTABLE_SUFFIX}
${CMAKE_CURRENT_LIST_DIR}/${file})
set_tests_properties(${file} PROPERTIES LABELS "regress${level}")
; the purpose of this test is to verify that there is a `as` term in the output.
-; the scrubber excludes all lines without "(as @", and replaces this pattern by "AS".
+; the scrubber searches for "(as @a" patterns.
-; SCRUBBER: sed -e 's/.*(as @.*/AS/; /sat/d; /cardinality/d; /rep/d; /^($/d; /^)$/d'
-; EXPECT: AS
-; EXPECT: AS
+; SCRUBBER: grep -o "(as @a"
+; EXPECT: (as @a
+; EXPECT: (as @a
(set-logic QF_UF)
(set-option :produce-models true)
(declare-sort Sort0 0)
; DISABLE-TESTER: dump
; COMMAND-LINE: --help
-; SCRUBBER: grep -o "usage: cvc5"
-; EXPECT: usage: cvc5
-; EXIT: 1
\ No newline at end of file
+; SCRUBBER: grep -o "usage:"
+; EXPECT: usage:
+; EXIT: 1
output = output.decode()
if isinstance(error, bytes):
error = error.decode()
- output = re.sub(r"^[ \t]*", "", output.strip(), flags=re.MULTILINE)
- error = re.sub(r"^[ \t]*", "", error.strip(), flags=re.MULTILINE)
+ output = re.sub(r"^[ \t]*|\r", "", output.strip(), flags=re.MULTILINE)
+ error = re.sub(r"^[ \t]*|\r", "", error.strip(), flags=re.MULTILINE)
# qemu (used for arm nightlies) emits additional error output for non-zero exit codes
error = re.sub(r"qemu: uncaught target signal.*", "", error).strip()
return (output, error, exit_status)