Skip to content

Commit

Permalink
WIP unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
folmos-at-orange committed Aug 24, 2023
1 parent f46df6d commit e93d43b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,34 @@ jobs:
targets: norm_test parallel_test parallel_mpi_test learning_test
override-flags: -DBUILD_JARS=OFF
- name: Run Unit Tests for the Norm Module
if: success() || failure()
run: build/${{ matrix.build-setup.cmake-preset }}/bin/norm_test --gtest_output="xml:${{github.workspace}}/reports/report-norm.xml"
run: >
build/${{ matrix.build-setup.cmake-preset }}/bin/norm_test
--gtest_output="xml:reports/report-norm.xml"
- name: Run Unit Tests for the Parallel Module
if: success() || failure()
run: build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_test --gtest_output="xml:${{github.workspace}}/reports/report-parallel.xml"
run: >
build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_test
--gtest_output="xml:reports/report-parallel.xml"
- name: Run Unit Tests for the Parallel MPI Module in serial
if: success() || failure()
run: build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_mpi_test --gtest_output="xml:${{github.workspace}}/reports/report-parallel-mpi-serial.xml"
run: >
build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_mpi_test
--gtest_output="xml:reports/report-parallel-mpi-serial.xml"
- name: Run Unit Tests for the Parallel MPI Module in parallel
if: success() || failure()
run: mpiexec -n 4 build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_mpi_test
--gtest_output="xml:${{github.workspace}}/reports/report-parallel-mpi-parallel.xml"
run: >
mpiexec -n 4 build/${{ matrix.build-setup.cmake-preset }}/bin/parallel_mpi_test
--gtest_output="xml:reports/report-parallel-mpi-parallel.xml"
- name: Run Unit Tests for the Learning Module
if: success() || failure()
run: build/${{ matrix.build-setup.cmake-preset }}/bin/learning_test --gtest_output="xml:${{github.workspace}}/reports/report-learning.xml"
- name: Create Unit Test Reports
uses: dorny/test-reporter@v1
run: >
build/${{ matrix.build-setup.cmake-preset }}/bin/learning_test
--gtest_output="xml:reports/report-learning.xml"
- name: Create Unit Test Reports Dashboards
uses: dorny/[email protected]
if: success() || failure()
with:
name: Unit Tests
path: ${{github.workspace}}/reports/report-*.xml
name: Unit Tests Reports (${{ matrix.build-setup.os }})
reporter: jest-junit
path: reports/report-*.xml
path-replace-backslashes: 'true' # Necessary for windows paths
2 changes: 1 addition & 1 deletion packaging/windows/nsis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ somewhere in your system. In the example we suppose that they are located at
# At the root of the repo build the khiops binaries
cmake --build --parallel --preset windows-msvc-release --target MODL MODL_Coclustering norm_jar khiops_jar

#
# In the packaging directory build the installer with makensis
cd packaging/windows/nsis
makensis `
/DKHIOPS_VERSION=10.1.1 `
Expand Down

0 comments on commit e93d43b

Please sign in to comment.