File: wce.script.cmake

package info (click to toggle)
asymptote 3.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,420 kB
  • sloc: cpp: 172,663; ansic: 69,690; python: 14,957; sh: 5,605; javascript: 4,871; lisp: 1,507; perl: 1,417; makefile: 1,026; yacc: 610; lex: 449; xml: 182; asm: 8
file content (15 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# testing for wce. Equivalent to ./wce script

execute_process(
        COMMAND ${ASY_EXEC} -q -sysdir ${ASY_BASE_DIR} -noautoplain -debug errortest
        WORKING_DIRECTORY ${SOURCE_ROOT}
        ERROR_VARIABLE ASY_STDERR_OUTPUT
)

file(READ ${SOURCE_ROOT}/errors EXPECTED_ERROR_OUTPUT)

if (NOT ASY_STDERR_OUTPUT STREQUAL EXPECTED_ERROR_OUTPUT)
    message(FATAL_ERROR "Asymptote error test fails.")
else()
    message(STATUS "Asymptote error messages equal expected. Test passes")
endif()