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.
This commit is contained in:
Oliver Hamlet
2016-09-18 18:18:08 +01:00
parent ee977308f8
commit 9a21830bd6
2 changed files with 3 additions and 6 deletions
-4
View File
@@ -87,10 +87,6 @@ add_custom_command(TARGET loot_api POST_BUILD
"${CMAKE_SOURCE_DIR}/src/test.py"
"$<TARGET_FILE_DIR:loot_api>/test.py")
enable_testing()
add_test(NAME test
COMMAND ${PYTHON_EXECUTABLE} -m unittest test)
########################################
# Install
########################################
+3 -2
View File
@@ -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.