Skip to content

Commit

Permalink
btrfs-progs: ci: enable more tests for devel workflow
Browse files Browse the repository at this point in the history
More complete test coverage:

- json an string table formatters
- fuzz tests (no mount)
- libbtrfs build test
- libbtrfsutil python test
- ioctl build test
- hash tests

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed May 26, 2023
1 parent d64d62c commit adfc8a9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - various runtime tests

name: Devel build and tests
run-name: Devel tests
run-name: Devel build and tests
on:
push:
branches:
Expand All @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- run: uname -a
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure
- name: Make
Expand All @@ -32,3 +32,19 @@ jobs:
run: sudo make TEST_LOG=dump test-check-lowmem
- name: Tests misc
run: sudo make TEST_LOG=dump test-misc
- name: Tests json formatter
run: make test-json
- name: Tests string-table formatter
run: make test-string-table
- name: Libbtrfsutil test
run: make test-libbtrfsutil
- name: Libbtrfs build test
run: make library-test
- name: Libbtrfs build test (static)
run: make library-test.static
- name: Tests ioctl
run: make ioctl-test
- name: Tests hash (speed)
run: make hash-speedtest && ./hash-speedtest 1
- name: Tests hash (correctness)
run: make hash-vectest && ./hash-vectest
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ test-json: json-formatter-test
max=`./json-formatter-test`; \
for testno in `seq 1 $$max`; do \
echo " [TEST/json] $$testno"; \
./json-formatter-test $$testno | jq >& /dev/null; \
./json-formatter-test $$testno | jq >/dev/null; \
done \
}

Expand All @@ -531,7 +531,7 @@ test-string-table: string-table-test
max=`./string-table-test`; \
for testno in `seq 1 $$max`; do \
echo " [TEST/s-t] $$testno"; \
./string-table-test $$testno ; \
./string-table-test $$testno >/dev/null; \
done \
}

Expand Down

0 comments on commit adfc8a9

Please sign in to comment.