Enable testing binding-functions in Appveyor
@@ -39,10 +39,12 @@ environment:
build_script:
- cmake "-G%GENERATOR%" -H. -Bbuild
- cmake --build build --config "%CONFIG%"
- # Intentionally failing the build to check the test
- #- cmake --build build --config "%CONFIG%" binding-functions
+ - cmake --build build --config "%CONFIG%" --target binding-functions
test_script:
- ps: cd build
- ctest -VV -C "%CONFIG%"
- - ps: (Get-Item "binding-functions").Length -gt 10
+ # Check that binding-functions was generated and has content
+ - ps: |
+ $ErrorActionPreference = "Stop"
+ if ((Get-Item "binding-functions").Length -lt 10) { $host.SetShouldExit(1) }
\ No newline at end of file
