]> git.lyx.org Git - lyx.git/blob - src/frontends/tests/test_biblio.cmake
Allow click on the 'spinner' to cancel export.
[lyx.git] / src / frontends / tests / test_biblio.cmake
1 # check of output of biblio-command with the saved data in regfiles/biblio
2 #
3 # Input variable
4 # biblio       = full path of the biblio executable
5 # saved_data   = full path of the file with expected output of biblio
6
7 if(NOT EXISTS "${biblio}")
8   message(STATUS "searching for biblio as ${biblio}")
9   message(FATAL_ERROR "Compile biblio first")
10 else()
11   execute_process(COMMAND "${biblio}" OUTPUT_VARIABLE biblio_out RESULT_VARIABLE biblio_res)
12
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}")
16   endif()
17 endif()