From 95bfd9b4362754dd754d2e0346136999f56a0b01 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 4 Jun 2018 20:32:17 +0200 Subject: appveyor.yml: run ctest on cmake builds --- appveyor.yml | 3 +++ test/unit/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 70d9b1e9..d7a91bef 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -43,6 +43,7 @@ test_script: - if "%BUILD_TYPE%" == "nmake" set PROJ_LIB=C:\PROJ\SHARE - if "%BUILD_TYPE%" == "nmake" mkdir %PROJ_LIB%\tests - if "%BUILD_TYPE%" == "nmake" copy nad\tests\*.* %PROJ_LIB%\tests + - set CURDIR=%CD% - cd %PROJ_LIB% - curl -O http://download.osgeo.org/proj/proj-datumgrid-1.7.zip - 7z e -aoa -y proj-datumgrid-1.7.zip @@ -57,5 +58,7 @@ test_script: - echo "Contents of PROJ_LIB " %PROJ_LIB% - dir %PROJ_LIB% - gie.exe ..\test\gie\*.gie ..\test\gigs\*.gie + - cd %CURDIR% + - if "%BUILD_TYPE%" == "cmake" ctest -C Release deploy: off diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 64fbede0..c9aa8741 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -10,4 +10,4 @@ set_target_properties(basic_test add_test( NAME basic_test WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/basic_test ) + COMMAND basic_test ) -- cgit v1.2.3