C++ with Boost Unit Test

Larz's Avatar

Larz

24 Feb, 2016 04:22 AM

Hello! I'm trying to get my C++ code that uses Boost Unit Test working. http://www.boost.org/doc/libs/1_42_0/libs/test/doc/html/index.html
However, the build is hanging when I run the unit test (via ctest). Not sure if my scripts are correct?

----CMakeLists.txt---
cmake_minimum_required(VERSION 2.8)
project(Tests)
find_package (Boost COMPONENTS unit_test_framework REQUIRED)
#add_definitions(-std=c++11)
include_directories(${Boost_INCLUDE_DIR})
add_executable(TestGaussLegendreQuadrature "TestGaussLegendreQuadrature.cpp" "GaussLegendreQuadrature.cpp")
target_link_libraries(TestGaussLegendreQuadrature ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
enable_testing()
add_test(Tests TestGaussLegendreQuadrature)
--------------------------------

---------------appveyor.yml-----------
os: Visual Studio 2015

platform: x64

environment:
  BOOST_ROOT: C:\Libraries\boost_1_59_0
  BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0

build_script:
  - mkdir build
  - cd build
  - cmake .. -G"Visual Studio 14 2015 Win64"
  - cmake --build . --config Debug

test_script:
  - ctest -VV -C Debug
-----------------------

----build log is----
https://ci.appveyor.com/project/larzw/gausslegendrequadrature/build/1.0.20
------
Which is hanging...Thanks in advance!

  1. Support Staff 1 Posted by Feodor Fitsner on 24 Feb, 2016 04:29 AM

    Feodor Fitsner's Avatar

    Try using RDP to see what's going on build worker during tests: http://www.appveyor.com/docs/how-to/rdp-to-build-worker

    My guess there is a dialog window shown or something like that.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Jun, 2025 08:45 PM
18 Jun, 2025 04:23 PM
13 Jun, 2025 04:36 PM
13 Jun, 2025 04:27 PM
13 Jun, 2025 07:20 AM

 

10 Jun, 2025 01:56 AM
09 Jun, 2025 07:11 PM
04 Jun, 2025 04:08 PM
27 May, 2025 05:48 PM
27 May, 2025 06:37 AM
27 May, 2025 06:31 AM