Skip to content

Commit c27b374

Browse files
committed
[TEST] Do not check read_mapper output
If there is no cereal
1 parent 2cbfd77 commit c27b374

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/snippet/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ set_tests_properties (
6969
"snippet/utility/container/aligned_allocator_snippet_cmp_output"
7070
PROPERTIES SKIP_RETURN_CODE 1)
7171

72+
# These tests do not produce output if cereal is not available.
73+
if (NOT TARGET cereal::cereal)
74+
set_tests_properties (
75+
"doc/snippet/tutorial/11_read_mapper/read_mapper_indexer_step3_snippet_cmp_output"
76+
"doc/snippet/tutorial/11_read_mapper/read_mapper_step2_snippet_cmp_output"
77+
"doc/snippet/tutorial/11_read_mapper/read_mapper_step3_snippet_cmp_output"
78+
"doc/snippet/tutorial/11_read_mapper/read_mapper_step4_snippet_cmp_output"
79+
PROPERTIES SKIP_RETURN_CODE 1)
80+
endif ()
81+
7282
list_unused_snippets ("${CMAKE_CURRENT_SOURCE_DIR}")
7383
list_unused_snippets ("${CMAKE_CURRENT_SOURCE_DIR}/../../doc")
7484

0 commit comments

Comments
 (0)