mirror of
https://github.com/loot/libloot-python.git
synced 2026-07-27 14:14:13 -07:00
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:
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user