File: check.cmake.in

package info (click to toggle)
mpqc3 0.0~git20170114-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 148,788 kB
  • ctags: 40,140
  • sloc: cpp: 545,687; ansic: 13,220; perl: 5,065; fortran: 1,990; lisp: 1,269; python: 717; yacc: 392; sh: 304; f90: 238; lex: 184; xml: 182; makefile: 106
file content (14 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set(overall_result_code 0)
set(MPQC_INTEGRAL_FACTORY_LIST "@MPQC_INTEGRAL_FACTORY_LIST@")
foreach(intf IN LISTS MPQC_INTEGRAL_FACTORY_LIST)
  execute_process(COMMAND make -f check.mk ${CHECKLEVEL} MPQCRUN_ARGS=--integral=${intf} RESULT_VARIABLE result_code ERROR_QUIET)
  if(NOT "${result_code}" STREQUAL "0")
    set(overall_result_code 1)
  endif()
endforeach()

if(${overall_result_code} EQUAL 0)
  message(STATUS "CHECKS PASSED")
else()
  message(FATAL_ERROR "CHECKS FAILED")
endif()