Debian Codegraph @

debian/patches/optional-octave-tests

raw
1 Author: "A. Maitland Bottoms" <[email protected]>
2 Description: optional octave tests
3 Forwarded: not-needed
4
5 Allow build to complete even without octave available for testing.
6
7 --- a/unittest/CMakeLists.txt
8 +++ b/unittest/CMakeLists.txt
9 @@ -71,7 +71,8 @@
10 target_link_libraries(tquisk_filter codec2)
11
12 # Build CML as part of unit test setup
13 -find_program(OCTAVE_CMD octave-cli REQUIRED)
14 +find_program(OCTAVE_CMD octave-cli)
15 +if(OCTAVE_CMD)
16 message("Octave command: ${OCTAVE_CMD}")
17
18 include(ExternalProject)
19 @@ -95,6 +96,9 @@
20 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/faster_fading_samples.float
21 COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && ./fading_files.sh ${CMAKE_CURRENT_BINARY_DIR}
22 )
23 +else()
24 +message("No Octave: expect octave-using tests to fail")
25 +endif()
26
27 add_executable(freedv_700d_comptx freedv_700d_comptx.c)
28 add_executable(freedv_700d_comprx freedv_700d_comprx.c)
29 @@ -120,4 +124,4 @@
30 target_link_libraries(vq_mbest codec2)
31
32 add_executable(tesno_est tesno_est.c)
33 -target_link_libraries(tesno_est m codec2)
34 \ No newline at end of file
35 +target_link_libraries(tesno_est m codec2)