From 7cfcf9fbab7b029443ccbe5aba29fdf26d3a047f Mon Sep 17 00:00:00 2001 From: "David J. Fiddes" <35607151+davefiddes@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:03:56 +0000 Subject: [PATCH] Remove duplicate unit tests from libopeninv (#47) As libopeninv now has unit tests remove the duplicates. Update the Makefile and Code::Blocks project to reference the new libopeninv tests and add missing files. Update the GitHub Action workflow to run both sets of tests. --- .github/workflows/CI-build.yml | 8 +- Makefile | 6 +- libopeninv | 2 +- sinus.cbp | 55 +++ test/Makefile | 2 +- test/test_canmap.cpp | 862 --------------------------------- test/test_fp.cpp | 33 +- 7 files changed, 68 insertions(+), 900 deletions(-) delete mode 100644 test/test_canmap.cpp diff --git a/.github/workflows/CI-build.yml b/.github/workflows/CI-build.yml index 36850ce..ca891c9 100644 --- a/.github/workflows/CI-build.yml +++ b/.github/workflows/CI-build.yml @@ -54,8 +54,12 @@ jobs: - name: Build unit tests on host run: | - make -C test + make Test - - name: Run unit tests on host + - name: Run stm32-sine unit tests on host run: | test/test_sine + + - name: Run libopeninv unit tests on host + run: | + libopeninv/test/test_libopeninv diff --git a/Makefile b/Makefile index 633d69a..8127eb6 100644 --- a/Makefile +++ b/Makefile @@ -159,6 +159,8 @@ get-deps: $(Q)${MAKE} -C libopencm3 Test: - cd test && $(MAKE) + $(MAKE) -C test + $(MAKE) -C libopeninv/test cleanTest: - cd test && $(MAKE) clean + $(MAKE) -C test clean + $(MAKE) -C libopeninv/test clean diff --git a/libopeninv b/libopeninv index decbdfb..93e9bcd 160000 --- a/libopeninv +++ b/libopeninv @@ -1 +1 @@ -Subproject commit decbdfb21705234771cd8f0d3f6bce16574e26f7 +Subproject commit 93e9bcdf730fddcf098a6dfd449ce42badf0a8f1 diff --git a/sinus.cbp b/sinus.cbp index 62c95c7..94cd215 100644 --- a/sinus.cbp +++ b/sinus.cbp @@ -58,6 +58,15 @@ + +