From 9a2d3f16fffa5f41464dbb69ff1fd5204768530e Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 13:50:45 +0100 Subject: [PATCH 01/16] Reinstate `yarp-device-rplidar` in the Dockerfile (#702) --- tests/dockerfiles/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/dockerfiles/Dockerfile b/tests/dockerfiles/Dockerfile index ffe0d0257..06a8a23d4 100644 --- a/tests/dockerfiles/Dockerfile +++ b/tests/dockerfiles/Dockerfile @@ -72,14 +72,14 @@ RUN cd ${DEPENDENCIES_DIR} && \ cmake --build . --config Release --target install # yarp-device-rplidar -#RUN cd ${DEPENDENCIES_DIR} && \ -# git clone https://github.com/robotology/yarp-device-rplidar.git && \ -# cd yarp-device-rplidar && mkdir -p build && cd build && \ -# git checkout master && \ -# cmake .. \ -# -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ -# -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install && \ -# cmake --build . --config Release --target install +RUN cd ${DEPENDENCIES_DIR} && \ + git clone https://github.com/robotology/yarp-device-rplidar.git && \ + cd yarp-device-rplidar && mkdir -p build && cd build && \ + git checkout master && \ + cmake .. \ + -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ + -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install && \ + cmake --build . --config Release --target install # icub-firmware-shared RUN cd ${DEPENDENCIES_DIR} && \ From 2c710971ad01a35fdfa9b9e7fcaabf811c1a1322 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:01:03 +0100 Subject: [PATCH 02/16] Reinstate `rpLidar` in dry-run-dev (#703) --- tests/dry-run/dry-run_dev.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/dry-run/dry-run_dev.sh b/tests/dry-run/dry-run_dev.sh index 0b45cdfa0..6fc9905d3 100755 --- a/tests/dry-run/dry-run_dev.sh +++ b/tests/dry-run/dry-run_dev.sh @@ -73,9 +73,6 @@ cp ${file_pc104} ${file_pc104}_bkp # disable inertial devices xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'inertials')]" ${file_launch} -# disable rpLidar devices -xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'rpLidar')]" ${file_launch} - # disable wholebodydynamics xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'wholebodydynamics')]" ${file_launch} From dcacaa2c26c20bff31002ce1db2d12e4fe235152 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:09:40 +0100 Subject: [PATCH 03/16] Update publish-docker.yml --- .github/workflows/publish-docker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 61c469be2..f46f13069 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -21,10 +21,11 @@ jobs: workdir: tests/dockerfiles buildargs: DEPENDENCIES_DIR registry: ghcr.io + tags: "latest" - name: Clean up Registry from untagged images - uses: actions/delete-package-versions@v4.1.1 + uses: actions/delete-package-versions@v5 with: package-name: 'robots-configuration' package-type: 'container' min-versions-to-keep: 0 - delete-only-untagged-versions: "true" \ No newline at end of file + delete-only-untagged-versions: "true" From 4adb749bdd0c6c3f0239b8a624a6fbc947c53c49 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 13:58:31 +0000 Subject: [PATCH 04/16] added doc for tests --- tests/dry-run/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/dry-run/README.md b/tests/dry-run/README.md index e935f3b6e..fb0a93b1c 100644 --- a/tests/dry-run/README.md +++ b/tests/dry-run/README.md @@ -6,3 +6,29 @@ The CI can perform two types of dry-run: 2. DEV dry-run, to check the consistency of the devices: e.g., missing parameters, deprecated devices... The output of the dry-run is stored as artifact within the CI workflow to enable later inspection. + +### Invoking `ctest` + +#### List available tests +```console +ctest -N +``` + +#### Run specific tests +```console +ctest -R test_name +ctest -R "test.*" +``` + +#### Run tests associated to specific labels +```console +ctest -L "label_1;label_2" +``` + +#### Run all available tests +```console +ctest +``` + +### Tests skipped +Tests that have to be excluded are listed in `skip_tests.txt` file. From ce5cd5d2189543e173fa3f9bc2f1bb89f7ec899a Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:07:18 +0000 Subject: [PATCH 05/16] added R1SN001 to tests --- R1SN001/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 R1SN001/CMakeLists.txt diff --git a/R1SN001/CMakeLists.txt b/R1SN001/CMakeLists.txt new file mode 100644 index 000000000..a552a4470 --- /dev/null +++ b/R1SN001/CMakeLists.txt @@ -0,0 +1,11 @@ +set(appname R1SN001) + +set(scripts CER.xml yarprobotinterface.ini general.xml yarpmotorgui.ini firmwareupdater.ini) + +yarp_install(FILES ${scripts} DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) +yarp_install(DIRECTORY calibrators DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) +yarp_install(DIRECTORY wrappers DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) +yarp_install(DIRECTORY hardware DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) +yarp_install(DIRECTORY sensors DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) +yarp_install(DIRECTORY camera DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/${appname}) + From b426c74ce138bfb432bebe79d46c2c0a92bccdd3 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:09:30 +0000 Subject: [PATCH 06/16] enabled dry-run xml for R1SN00* --- tests/dry-run/skip_tests.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/dry-run/skip_tests.txt b/tests/dry-run/skip_tests.txt index 4d4a296ab..f92fab618 100644 --- a/tests/dry-run/skip_tests.txt +++ b/tests/dry-run/skip_tests.txt @@ -1,6 +1,3 @@ -dry-run_R1SN001_xml -dry-run_R1SN002_xml -dry-run_R1SN003_xml dry-run_R1SN001_dev dry-run_R1SN002_dev dry-run_R1SN003_dev \ No newline at end of file From cda7b8d6e7de7b5fb0942052fb6d0dc7b38bce85 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 15:15:49 +0100 Subject: [PATCH 07/16] Revert "Reinstate `rpLidar` in dry-run-dev (#703)" This reverts commit 2c710971ad01a35fdfa9b9e7fcaabf811c1a1322. --- tests/dry-run/dry-run_dev.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dry-run/dry-run_dev.sh b/tests/dry-run/dry-run_dev.sh index 6fc9905d3..0b45cdfa0 100755 --- a/tests/dry-run/dry-run_dev.sh +++ b/tests/dry-run/dry-run_dev.sh @@ -73,6 +73,9 @@ cp ${file_pc104} ${file_pc104}_bkp # disable inertial devices xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'inertials')]" ${file_launch} +# disable rpLidar devices +xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'rpLidar')]" ${file_launch} + # disable wholebodydynamics xmlstarlet edit --inplace --delete "/robot/devices/xi:include[contains(@href,'wholebodydynamics')]" ${file_launch} From d8ccda02a7c0843390b2bbebf31882dfdcda804e Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:38:13 +0000 Subject: [PATCH 08/16] [R1SN001] fixed wrapper name --- R1SN001/wrappers/FT/cer_right_arm-FT_wrapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R1SN001/wrappers/FT/cer_right_arm-FT_wrapper.xml b/R1SN001/wrappers/FT/cer_right_arm-FT_wrapper.xml index cb3d796d9..94d3415ad 100644 --- a/R1SN001/wrappers/FT/cer_right_arm-FT_wrapper.xml +++ b/R1SN001/wrappers/FT/cer_right_arm-FT_wrapper.xml @@ -2,7 +2,7 @@ - + 10 /cer/right_arm/FT:o From 30f6ce1ca96010a453837a77cc785d0fb2e63da1 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 14:38:44 +0000 Subject: [PATCH 09/16] [dry-run-dev] enable R1SN001 and R1SN003 --- tests/dry-run/skip_tests.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/dry-run/skip_tests.txt b/tests/dry-run/skip_tests.txt index f92fab618..1a9426ca2 100644 --- a/tests/dry-run/skip_tests.txt +++ b/tests/dry-run/skip_tests.txt @@ -1,3 +1 @@ -dry-run_R1SN001_dev -dry-run_R1SN002_dev -dry-run_R1SN003_dev \ No newline at end of file +dry-run_R1SN002_dev \ No newline at end of file From 408031aae07dd2c32520e48774c66aebc1ad681a Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 16:18:58 +0100 Subject: [PATCH 10/16] added devcontainer --- .devcontainer/devcontainer.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..1ef3dd771 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,17 @@ +{ + "name": "CDE for robots-configuration", + "image": "ghcr.io/robotology/robots-configuration:latest", + "remoteUser": "gitpod", + "customizations": { + "vscode": { + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + } + } + }, + "postAttachCommand": [ + "mkdir -p build && cd build", + "cmake .. -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install -DBUILD_TESTING:BOOL=ON -DINSTALL_ALL_ROBOTS:BOOL=ON", + "cmake --build . --config Release --target install" + ] +} From 39b126dce4b693aa6e5fd2ff531a49005b064dbf Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 15:43:44 +0000 Subject: [PATCH 11/16] refactored configure --- .devcontainer/devcontainer.json | 13 +------------ .github/workflows/ci.yml | 6 +----- .gitpod.yml | 10 +--------- tests/dry-run/configure.sh | 13 +++++++++++++ 4 files changed, 16 insertions(+), 26 deletions(-) create mode 100755 tests/dry-run/configure.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1ef3dd771..4e0701cc9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,16 +2,5 @@ "name": "CDE for robots-configuration", "image": "ghcr.io/robotology/robots-configuration:latest", "remoteUser": "gitpod", - "customizations": { - "vscode": { - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - } - } - }, - "postAttachCommand": [ - "mkdir -p build && cd build", - "cmake .. -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install -DBUILD_TESTING:BOOL=ON -DINSTALL_ALL_ROBOTS:BOOL=ON", - "cmake --build . --config Release --target install" - ] + "postAttachCommand": "./tests/dry-run/configure.sh" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b125343f4..be6cdce05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,11 +40,7 @@ jobs: - name: Configure shell: bash run: | - mkdir -p build && cd build - cmake -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ - -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install \ - -DBUILD_TESTING:BOOL=ON \ - -DINSTALL_ALL_ROBOTS:BOOL=ON .. + ./tests/dry-run/configure.sh - name: Install shell: bash diff --git a/.gitpod.yml b/.gitpod.yml index a76205eb6..6aba95423 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,11 +1,3 @@ image: ghcr.io/robotology/robots-configuration:latest tasks: -- name: Install - command: | - mkdir -p build && cd build - cmake .. \ - -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ - -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install \ - -DBUILD_TESTING:BOOL=ON \ - -DINSTALL_ALL_ROBOTS:BOOL=ON - cmake --build . --config Release --target install \ No newline at end of file +- command: ./tests/dry-run/configure.sh diff --git a/tests/dry-run/configure.sh b/tests/dry-run/configure.sh new file mode 100755 index 000000000..388beaf1d --- /dev/null +++ b/tests/dry-run/configure.sh @@ -0,0 +1,13 @@ +#!/usr/bin/bash +################################################################################ +# # +# Copyright (C) 2024 Fondazione Istitito Italiano di Tecnologia (IIT) # +# All Rights Reserved. # +# # +################################################################################ + +mkdir -p build && cd build +cmake -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ + -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install \ + -DBUILD_TESTING:BOOL=ON \ + -DINSTALL_ALL_ROBOTS:BOOL=ON .. \ No newline at end of file From f50e8e0cc6441283aa7d1bc2aadd643a744fda7d Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 16:06:39 +0000 Subject: [PATCH 12/16] refactoring to use devcontainer --- .devcontainer/devcontainer.json | 3 +-- .github/workflows/ci.yml | 9 +++++---- .gitpod.yml | 3 --- tests/dockerfiles/Dockerfile | 14 +++++++------- tests/dry-run/configure.sh | 2 +- tests/dry-run/skip_tests.txt | 1 - 6 files changed, 14 insertions(+), 18 deletions(-) delete mode 100644 .gitpod.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4e0701cc9..462ff2319 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,5 @@ { "name": "CDE for robots-configuration", "image": "ghcr.io/robotology/robots-configuration:latest", - "remoteUser": "gitpod", - "postAttachCommand": "./tests/dry-run/configure.sh" + "remoteUser": "codespace" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be6cdce05..8294c9729 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,18 +40,19 @@ jobs: - name: Configure shell: bash run: | - ./tests/dry-run/configure.sh + cd ./tests/dry-run/ + ./configure.sh - name: Install shell: bash run: | - cd build + cd ./tests/dry-run/build cmake --build . --config Release --target install - name: Test shell: bash run: | - cd build + cd ./tests/dry-run/build ctest --timeout 60 --output-on-failure -L run - name: Upload Output @@ -59,5 +60,5 @@ jobs: uses: actions/upload-artifact@main with: name: dry-run_${{ github.run_id }} - path: build/dry-run_log_*.txt + path: tests/dry-run/build/dry-run_log_*.txt retention-days: 30 diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 6aba95423..000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,3 +0,0 @@ -image: ghcr.io/robotology/robots-configuration:latest -tasks: -- command: ./tests/dry-run/configure.sh diff --git a/tests/dockerfiles/Dockerfile b/tests/dockerfiles/Dockerfile index 06a8a23d4..8eebb96f5 100644 --- a/tests/dockerfiles/Dockerfile +++ b/tests/dockerfiles/Dockerfile @@ -131,19 +131,19 @@ RUN cd ${DEPENDENCIES_DIR} && \ -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install && \ cmake --build . --target install -# Create user gitpod -RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod && \ +# Create user codespace +RUN useradd -l -u 33333 -G sudo -md /home/codespace -s /bin/bash -p codespace codespace && \ # passwordless sudo for users in the 'sudo' group sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers -# Switch to gitpod user -USER gitpod +# Switch to codespace user +USER codespace # Install informative git for bash RUN git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 # Set up .bashrc -WORKDIR /home/gitpod +WORKDIR /home/codespace RUN echo "GIT_PROMPT_ONLY_IN_REPO=1" >> ~/.bashrc && \ echo "source \${HOME}/.bash-git-prompt/gitprompt.sh" >> ~/.bashrc && \ echo "export DEPENDENCIES_DIR=${DEPENDENCIES_DIR}" >> ~/.bashrc && \ @@ -153,8 +153,8 @@ RUN echo "GIT_PROMPT_ONLY_IN_REPO=1" >> ~/.bashrc && \ # Switch back to root USER root -# Make sure specific dirs are owned by gitpod user -RUN chown -R gitpod.gitpod ${DEPENDENCIES_DIR} +# Make sure specific dirs are owned by codespace user +RUN chown -R codespace.codespace ${DEPENDENCIES_DIR} RUN rm -Rf /var/lib/apt/lists/* diff --git a/tests/dry-run/configure.sh b/tests/dry-run/configure.sh index 388beaf1d..0bd54e52e 100755 --- a/tests/dry-run/configure.sh +++ b/tests/dry-run/configure.sh @@ -10,4 +10,4 @@ mkdir -p build && cd build cmake -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install \ -DBUILD_TESTING:BOOL=ON \ - -DINSTALL_ALL_ROBOTS:BOOL=ON .. \ No newline at end of file + -DINSTALL_ALL_ROBOTS:BOOL=ON ../../../ \ No newline at end of file diff --git a/tests/dry-run/skip_tests.txt b/tests/dry-run/skip_tests.txt index 1a9426ca2..e69de29bb 100644 --- a/tests/dry-run/skip_tests.txt +++ b/tests/dry-run/skip_tests.txt @@ -1 +0,0 @@ -dry-run_R1SN002_dev \ No newline at end of file From b6fea59d665e44e86ba2df8bad2ee77c73418342 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 16:56:12 +0000 Subject: [PATCH 13/16] removed dry-run_R1SN002_dev --- tests/dry-run/skip_tests.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/dry-run/skip_tests.txt b/tests/dry-run/skip_tests.txt index e69de29bb..1a9426ca2 100644 --- a/tests/dry-run/skip_tests.txt +++ b/tests/dry-run/skip_tests.txt @@ -0,0 +1 @@ +dry-run_R1SN002_dev \ No newline at end of file From fa75baf46876daa98ca49ce3fb941d7895dccc5f Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 16:57:59 +0000 Subject: [PATCH 14/16] streamlined ci w/ preset --- .github/workflows/ci-nodeps.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci-nodeps.yml b/.github/workflows/ci-nodeps.yml index 01fb592d5..9139ab6d6 100644 --- a/.github/workflows/ci-nodeps.yml +++ b/.github/workflows/ci-nodeps.yml @@ -2,7 +2,21 @@ name: CI Workflow with nodeps CMake preset on: push: + branches: + - 'master' + - 'devel' + paths-ignore: + - 'experimentalSetups/**' + - 'iCubTemplates/**' + - 'tests/**' + - '.github/**' pull_request: + types: [opened, reopened, synchronize, ready_for_review] + paths-ignore: + - 'experimentalSetups/**' + - 'iCubTemplates/**' + - 'tests/**' + - '.github/**' workflow_dispatch: jobs: From 2449fe8b68e47ae5ca2d7fe25dcc0b48f6def217 Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 17:04:09 +0000 Subject: [PATCH 15/16] fixed ci configuration --- .github/workflows/ci.yml | 12 +++--------- tests/dry-run/{configure.sh => configure-tests.sh} | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) rename tests/dry-run/{configure.sh => configure-tests.sh} (87%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8294c9729..13eb3d33a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,19 +37,13 @@ jobs: echo "${DEPENDENCIES_DIR}/install/bin" >> $GITHUB_PATH echo "YARP_DATA_DIRS=${DEPENDENCIES_DIR}/install/share/yarp:${DEPENDENCIES_DIR}/install/share/iCub:${DEPENDENCIES_DIR}/install/share/CER:${DEPENDENCIES_DIR}/install/share/navigation:${DEPENDENCIES_DIR}/install/share/ICUBcontrib" >> $GITHUB_ENV - - name: Configure + - name: Configure Tests shell: bash run: | cd ./tests/dry-run/ - ./configure.sh + ./configure-tests.sh - - name: Install - shell: bash - run: | - cd ./tests/dry-run/build - cmake --build . --config Release --target install - - - name: Test + - name: Tests shell: bash run: | cd ./tests/dry-run/build diff --git a/tests/dry-run/configure.sh b/tests/dry-run/configure-tests.sh similarity index 87% rename from tests/dry-run/configure.sh rename to tests/dry-run/configure-tests.sh index 0bd54e52e..85b89cb7e 100755 --- a/tests/dry-run/configure.sh +++ b/tests/dry-run/configure-tests.sh @@ -10,4 +10,5 @@ mkdir -p build && cd build cmake -DCMAKE_PREFIX_PATH=${DEPENDENCIES_DIR}/install \ -DCMAKE_INSTALL_PREFIX=${DEPENDENCIES_DIR}/install \ -DBUILD_TESTING:BOOL=ON \ - -DINSTALL_ALL_ROBOTS:BOOL=ON ../../../ \ No newline at end of file + -DINSTALL_ALL_ROBOTS:BOOL=ON ../../../ +cmake --build . --config Release --target install From a7666faa8500a86e722a75666dd93b3d4bcfe13e Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Mon, 30 Dec 2024 18:10:26 +0100 Subject: [PATCH 16/16] Update README.md --- tests/dry-run/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/dry-run/README.md b/tests/dry-run/README.md index fb0a93b1c..b5af67c99 100644 --- a/tests/dry-run/README.md +++ b/tests/dry-run/README.md @@ -20,9 +20,9 @@ ctest -R test_name ctest -R "test.*" ``` -#### Run tests associated to specific labels +#### Run tests associated with specific labels ```console -ctest -L "label_1;label_2" +ctest -L "all;run;skip" ``` #### Run all available tests @@ -30,5 +30,5 @@ ctest -L "label_1;label_2" ctest ``` -### Tests skipped -Tests that have to be excluded are listed in `skip_tests.txt` file. +### Skipped tests +Tests that have to be ignored are listed in the `skip_tests.txt` file.