From 9a21830bd60cda554c9077ac1937000a7d4c48fb Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 18 Sep 2016 17:30:22 +0100 Subject: [PATCH] Remove CTest usage It behaves differently when run from MSVC and the command line, and doesn't display test output unless an env var or CLI flag is set, so it's better just to run the Python script directly. --- CMakeLists.txt | 4 ---- appveyor.yml | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab36f04..ace3f2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,10 +87,6 @@ add_custom_command(TARGET loot_api POST_BUILD "${CMAKE_SOURCE_DIR}/src/test.py" "$/test.py") -enable_testing() -add_test(NAME test - COMMAND ${PYTHON_EXECUTABLE} -m unittest test) - ######################################## # Install ######################################## diff --git a/appveyor.yml b/appveyor.yml index 8d442a6..3759bbd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,10 +15,11 @@ build: project: 'c:\projects\loot-api-python\build\loot_api_python.sln' test_script: - - cd %APPVEYOR_BUILD_FOLDER%\build - - ctest -C Release + - cd %APPVEYOR_BUILD_FOLDER%\build\Release + - python -m unittest test after_test: + - cd %APPVEYOR_BUILD_FOLDER%\build - cpack # AppVeyor checks out a specific commit, but that means the archive script # can't tell which branch it's on, so rename the 7z archives.