Resolve "Unit tests not found"

Closes #140 (closed)

Edited by Alberto Miranda

Merge request reports

Loading
+1 −1
Changes for tests/unit/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,6 +53,6 @@ catch_discover_tests(tests

if(GKFS_INSTALL_TESTS)
    install(TARGETS tests
        DESTINATION ${CMAKE_INSTALL_BINDIR}
      DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests/unit
    )
endif()
+5 −0
Changes for .gitlab-ci.yml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -68,8 +68,12 @@ compile GekkoFS:
      -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH}
      ${CI_PROJECT_DIR}
    - make -j$(nproc) install
    # the following commands are intended to reduce artifact size
    - rm -rf ${BUILD_PATH}/_deps
    - find ${BUILD_PATH} -name "*.o" -delete
  artifacts:
    paths:
      - ${BUILD_PATH}
      - ${INSTALL_PATH}

compile tests:
@@ -98,6 +102,7 @@ integration tests:
unit:
  stage: test
  script:
    - cd ${BUILD_PATH}
    - ctest -j $(nproc) -L unit::all
  artifacts:
    when: on_failure
Loading