Skip to content

Commit adfc8a9

Browse files
committed
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 <[email protected]>
1 parent d64d62c commit adfc8a9

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/devel.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# - various runtime tests
44

55
name: Devel build and tests
6-
run-name: Devel tests
6+
run-name: Devel build and tests
77
on:
88
push:
99
branches:
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- run: uname -a
1717
- run: sudo modprobe btrfs
18-
- 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
18+
- 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
1919
- name: Configure
2020
run: ./autogen.sh && ./configure
2121
- name: Make
@@ -32,3 +32,19 @@ jobs:
3232
run: sudo make TEST_LOG=dump test-check-lowmem
3333
- name: Tests misc
3434
run: sudo make TEST_LOG=dump test-misc
35+
- name: Tests json formatter
36+
run: make test-json
37+
- name: Tests string-table formatter
38+
run: make test-string-table
39+
- name: Libbtrfsutil test
40+
run: make test-libbtrfsutil
41+
- name: Libbtrfs build test
42+
run: make library-test
43+
- name: Libbtrfs build test (static)
44+
run: make library-test.static
45+
- name: Tests ioctl
46+
run: make ioctl-test
47+
- name: Tests hash (speed)
48+
run: make hash-speedtest && ./hash-speedtest 1
49+
- name: Tests hash (correctness)
50+
run: make hash-vectest && ./hash-vectest

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ test-json: json-formatter-test
521521
max=`./json-formatter-test`; \
522522
for testno in `seq 1 $$max`; do \
523523
echo " [TEST/json] $$testno"; \
524-
./json-formatter-test $$testno | jq >& /dev/null; \
524+
./json-formatter-test $$testno | jq >/dev/null; \
525525
done \
526526
}
527527

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

0 commit comments

Comments
 (0)