btrfs-progs: ci: split devel tests to groups
The tests are run in one job, we can make it parallel by grouping related tests together. - musl test, using docker, does not have to wait for build - simple tests, library, ioctl, api, ... - the rest are functional tests Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
8397fee2a3
commit
eed542859f
|
@ -9,35 +9,34 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- devel
|
- devel
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-simple:
|
||||||
|
name: Simple build tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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 jq
|
- 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
|
- name: Configure
|
||||||
run: ./autogen.sh && ./configure
|
run: ./autogen.sh && ./configure
|
||||||
- name: Make
|
|
||||||
run: make V=1
|
|
||||||
- name: Musl build
|
|
||||||
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
|
|
||||||
- name: Make static
|
- name: Make static
|
||||||
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
|
||||||
- name: Make box.static
|
- name: Make box.static
|
||||||
run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static
|
||||||
- name: Tests cli
|
build-musl:
|
||||||
run: sudo make TEST_LOG=dump test-cli
|
name: Build test on musl
|
||||||
- name: Tests mkfs
|
runs-on: ubuntu-latest
|
||||||
run: sudo make TEST_LOG=dump test-mkfs
|
steps:
|
||||||
- name: Tests check
|
- name: Musl build
|
||||||
run: sudo make TEST_LOG=dump test-check
|
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
|
||||||
- name: Tests check (lowmem)
|
test-quick:
|
||||||
run: sudo make TEST_LOG=dump test-check-lowmem
|
name: Quick tests
|
||||||
- name: Tests misc
|
runs-on: ubuntu-latest
|
||||||
run: sudo make TEST_LOG=dump test-misc
|
steps:
|
||||||
- name: Tests fuzz
|
- uses: actions/checkout@v3
|
||||||
run: sudo make TEST_LOG=dump test-fuzz
|
- 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 --disable-documentation
|
||||||
|
- name: Make
|
||||||
|
run: make V=1
|
||||||
- name: Tests json formatter
|
- name: Tests json formatter
|
||||||
run: make test-json
|
run: make test-json
|
||||||
- name: Tests string-table formatter
|
- name: Tests string-table formatter
|
||||||
|
@ -54,3 +53,27 @@ jobs:
|
||||||
run: make hash-speedtest && ./hash-speedtest 1
|
run: make hash-speedtest && ./hash-speedtest 1
|
||||||
- name: Tests hash (correctness)
|
- name: Tests hash (correctness)
|
||||||
run: make hash-vectest && ./hash-vectest
|
run: make hash-vectest && ./hash-vectest
|
||||||
|
test-all:
|
||||||
|
name: Functional tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- 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 jq
|
||||||
|
- name: Configure
|
||||||
|
run: ./autogen.sh && ./configure
|
||||||
|
- name: Make
|
||||||
|
run: make V=1
|
||||||
|
- name: Tests cli
|
||||||
|
run: sudo make TEST_LOG=dump test-cli
|
||||||
|
- name: Tests mkfs
|
||||||
|
run: sudo make TEST_LOG=dump test-mkfs
|
||||||
|
- name: Tests check
|
||||||
|
run: sudo make TEST_LOG=dump test-check
|
||||||
|
- name: Tests check (lowmem)
|
||||||
|
run: sudo make TEST_LOG=dump test-check-lowmem
|
||||||
|
- name: Tests misc
|
||||||
|
run: sudo make TEST_LOG=dump test-misc
|
||||||
|
- name: Tests fuzz
|
||||||
|
run: sudo make TEST_LOG=dump test-fuzz
|
||||||
|
|
Loading…
Reference in New Issue