Skip to content

Commit e424ac9

Browse files
.github: add tests with CANFD SUPPORT enabled
1 parent abb2593 commit e424ac9

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/canard_c.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
cd ${{github.workspace}}/tests
2929
git clone --depth 1 https://github.com/dronecan/dronecan_dsdlc
3030
git clone --depth 1 --branch v1.13.0 https://github.com/google/googletest
31-
- name: Run test
31+
- name: Run test Standard
3232
working-directory: ${{github.workspace}}/tests
3333
run: ./run_test.sh
34+
- name: Run test CANFD
35+
working-directory: ${{github.workspace}}/tests
36+
run: ./run_test.sh -DCANARD_ENABLE_CANFD=1
3437

.github/workflows/canard_cxx.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,34 @@ jobs:
2929
git clone --depth 1 https://github.com/DroneCAN/DSDL
3030
git clone --depth 1 https://github.com/dronecan/dronecan_dsdlc
3131
git clone --depth 1 --branch v1.13.0 https://github.com/google/googletest
32-
- name: Configure CMake
32+
- name: Configure Standard
3333
working-directory: ${{github.workspace}}/canard/tests
3434
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3535
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
3636
run: cmake -B ${{github.workspace}}/build
3737

38-
- name: Build
38+
- name: Build Standard
3939
working-directory: ${{github.workspace}}/canard/tests
4040
# Build your program with the given configuration
4141
run: cmake --build ${{github.workspace}}/build
4242

43-
- name: Test
43+
- name: Test Standard
44+
working-directory: ${{github.workspace}}/build
45+
# Execute tests defined by the CMake configuration.
46+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
47+
run: ctest
48+
49+
- name: Configure CANFD
50+
working-directory: ${{github.workspace}}/canard/tests
51+
# Build your program with the given configuration
52+
run: cmake -B ${{github.workspace}}/build -DCANARD_ENABLE_CANFD=1
53+
54+
- name: Build CANFD
55+
working-directory: ${{github.workspace}}/canard/tests
56+
# Build your program with the given configuration
57+
run: cmake --build ${{github.workspace}}/build
58+
59+
- name: Test CANFD
4460
working-directory: ${{github.workspace}}/build
4561
# Execute tests defined by the CMake configuration.
4662
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail

0 commit comments

Comments
 (0)