1 # check of output of biblio-command with the saved data in regfiles/biblio
4 # biblio = full path of the biblio executable
5 # saved_data = full path of the file with expected output of biblio
7 if(NOT EXISTS "${biblio}")
8 message(STATUS "searching for biblio as ${biblio}")
9 message(FATAL_ERROR "Compile biblio first")
11 execute_process(COMMAND "${biblio}" OUTPUT_VARIABLE biblio_out RESULT_VARIABLE biblio_res)
13 file(READ "${saved_data}" biblio_check)
14 if(NOT biblio_out STREQUAL biblio_check)
15 message(FATAL_ERROR "biblio_out = ${biblio_out}\nbiblio_in = ${biblio_in}")