Skip to content

Running Tests on AppVeyor CI #2136

@UnaNancyOwen

Description

@UnaNancyOwen

We implemented build test on Windows CI.
Next, We should consider running tests on Windows CI.

I implemented google test to vcpkg.
I confirmed that it can be used in PCL on my local environments.

  install:
-   - vcpkg install boost eigen3 flann qhull --triplet %PLATFORM%-windows
+   - vcpkg install boost eigen3 flann qhull gtest --triplet %PLATFORM%-windows
  build_script:
    - cd %APPVEYOR_BUILD_FOLDER%
    - mkdir build
    - cd build
    - cmake -G"%GENERATOR%"
            -DCMAKE_TOOLCHAIN_FILE=%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake
            -DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=ON
            -DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=ON
-           -DPCL_NO_PRECOMPILE=ON
+           -DPCL_NO_PRECOMPILE=OFF
            -DBUILD_simulation=ON
-           -DBUILD_global_tests=OFF
+           -DBUILD_global_tests=ON
            -DBUILD_examples=OFF
            -DBUILD_tools=OFF
            -DBUILD_apps=OFF
            ..
    - cmake --build . --config %CONFIGURATION%
+   - ctest -C %CONFIGURATION% -V

Probably, I think it have probrem that long build time will be time-out on AppVeyor.
Therefore, I propose to turn off PCL_NO_PRECOMPILE.
The build time is as follows on my local environments.

PCL_NO_PRECOMPILE Build Time
ON 1hour 30min over
OFF 30min

If this is not desirable, We should consider splitting jobs like Travis.

BTW:
However, the some tests fails on Windows.
It is known issues. (#1719)

93% tests passed, 7 tests failed out of 103

Total Test time (real) = 152.72 sec

The following tests FAILED:
	 13 - common_eigen (Failed)
	 23 - feature_rift_estimation (Failed)
	 25 - feature_cppf_estimation (Failed)
	 27 - feature_pfh_estimation (Failed)
	 50 - filters_sampling (Failed)
	 68 - io_grabbers (Failed)
	 80 - registration_api (Failed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions