tests: run i18ndcheck only when bash is found

it's a bash script, so it is pointless to attempt to start it when bash
is not installed
This commit is contained in:
Pino Toscano 2017-06-06 16:09:25 +02:00
parent 563011436d
commit 0c8cac7849

View File

@ -74,4 +74,6 @@ ecm_add_test(${sortfiltermodeltest_srcs} TEST_NAME plasma-sortfiltermodeltest LI
#Add a test that i18n is not used directly in any import.
# It should /always/ be i18nd
find_program(SH bash)
add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports)
if(SH)
add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports)
endif()