From b512558c024a609a1db8018d6fae93d0643bea5b Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 1 Dec 2023 01:39:27 +0100 Subject: [PATCH] btrfs-progs: build: add target for all internal APIs There are several APIs that have tests, add a single build target for convenience and enable that in the CI. Signed-off-by: David Sterba --- .github/workflows/coverage.yml | 6 ++---- .github/workflows/devel.yml | 6 ++---- Makefile | 2 ++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4fc0a82b..ef5a54de 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -31,10 +31,8 @@ jobs: run: sudo make D=gcov TEST_LOG=dump test-misc - name: Tests fuzz run: sudo make D=gcov TEST_LOG=dump test-fuzz - - name: Tests json formatter - run: make D=gcov test-json - - name: Tests string-table formatter - run: make D=gcov test-string-table + - name: Test internal APIs + run: make D=gcov test-api - name: Libbtrfsutil test run: make D=gcov test-libbtrfsutil - name: Libbtrfs build test diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index e9a32410..1fd87609 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -41,10 +41,8 @@ jobs: run: ./autogen.sh && ./configure --disable-documentation - name: Make run: make V=1 - - name: Tests json formatter - run: make test-json - - name: Tests string-table formatter - run: make test-string-table + - name: Test internal APIs + run: make test-api - name: Libbtrfsutil test run: make test-libbtrfsutil - name: Libbtrfs build test diff --git a/Makefile b/Makefile index b7585674..374f59b9 100644 --- a/Makefile +++ b/Makefile @@ -574,6 +574,8 @@ test-array: array-test done \ } +test-api: test-json test-string-table test-array + test: test-check test-check-lowmem test-mkfs test-misc test-cli test-fuzz testsuite: btrfs-corrupt-block btrfs-find-root btrfs-select-super fssum fsstress