Skip to content

Commit

Permalink
Disable incoming call test on Windows
Browse files Browse the repository at this point in the history
I'm unable to make it work as the shell fails to find binary which can
be found by CTest.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Oct 23, 2016
1 parent 4ecb3aa commit 49b0b19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gammu/CMakeTests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,12 @@ if (WITH_BACKUP)
)
endif (WITH_BACKUP)


configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/test-incoming.sh.in" "${CMAKE_CURRENT_BINARY_DIR}/test-incoming.sh" ESCAPE_QUOTES)
add_test(NAME "gammu-incoming" COMMAND "${SH_BIN}" "${CMAKE_CURRENT_BINARY_DIR}/test-incoming.sh" "${CMAKE_CURRENT_BINARY_DIR}/gammu${CMAKE_EXECUTABLE_SUFFIX}" "${CMAKE_CURRENT_BINARY_DIR}")
set_tests_properties("gammu-incoming" PROPERTIES PASS_REGULAR_EXPRESSION "incoming call from \"\\+800123456\"")
# TODO For some reason this test fails on Windows
if (NOT WIN32)
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/test-incoming.sh.in" "${CMAKE_CURRENT_BINARY_DIR}/test-incoming.sh" ESCAPE_QUOTES)
add_test(NAME "gammu-incoming" COMMAND "${SH_BIN}" "${CMAKE_CURRENT_BINARY_DIR}/test-incoming.sh" "${CMAKE_CURRENT_BINARY_DIR}/gammu${CMAKE_EXECUTABLE_SUFFIX}" "${CMAKE_CURRENT_BINARY_DIR}")
set_tests_properties("gammu-incoming" PROPERTIES PASS_REGULAR_EXPRESSION "incoming call from \"\\+800123456\"")
endif()

gammu_test(monitor GammuTel 1)
gammu_test(battery "Lithium Polymer")
Expand Down

0 comments on commit 49b0b19

Please sign in to comment.