btrfs-progs: ci: enable more tests for devel workflow

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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-05-26 19:12:31 +02:00
parent d64d62cce8
commit adfc8a943a
2 changed files with 20 additions and 4 deletions

View file

@ -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:
@ -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
@ -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

View file

@ -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 \
}
@ -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 \
}