Merge branch 'skip_tests_if_no_app' into 'master'
APP tests are disabled if app is not built See merge request federicomenaquintero/bzip2!37
This commit is contained in:
commit
775be3c894
@ -1,12 +1,13 @@
|
||||
set(sample1 -1 sample1.ref sample1.bz2)
|
||||
set(sample2 -1 sample2.ref sample2.bz2)
|
||||
set(sample3 -1 sample3.ref sample3.bz2)
|
||||
if (ENABLE_APP)
|
||||
set(sample1 -1 sample1.ref sample1.bz2)
|
||||
set(sample2 -1 sample2.ref sample2.bz2)
|
||||
set(sample3 -1 sample3.ref sample3.bz2)
|
||||
|
||||
foreach(TEST
|
||||
foreach(TEST
|
||||
"${sample1}"
|
||||
"${sample2}"
|
||||
"${sample3}"
|
||||
)
|
||||
)
|
||||
list(GET TEST 0 block_size)
|
||||
list(GET TEST 1 file_name)
|
||||
list(GET TEST 2 zip_name)
|
||||
@ -20,15 +21,15 @@ foreach(TEST
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${file_name}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${zip_name}
|
||||
)
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
foreach(TEST
|
||||
foreach(TEST
|
||||
"${sample1}"
|
||||
"${sample2}"
|
||||
"${sample3}"
|
||||
)
|
||||
list(GET TEST 0 block_size)
|
||||
list(GET TEST 1 file_name)
|
||||
)
|
||||
list(GET TEST 0 block_size)
|
||||
list(GET TEST 1 file_name)
|
||||
|
||||
add_test(NAME "decompress_${file_name}"
|
||||
COMMAND ${Python3_EXECUTABLE}
|
||||
@ -38,4 +39,6 @@ list(GET TEST 1 file_name)
|
||||
${block_size}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${file_name}
|
||||
)
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
endif(ENABLE_APP)
|
Loading…
Reference in New Issue
Block a user