2023-03-22 13:44:41 +00:00
|
|
|
# Workflow for testing branch 'devel'
|
|
|
|
# - build tests
|
|
|
|
# - various runtime tests
|
|
|
|
|
|
|
|
name: Devel build and tests
|
2023-05-26 17:12:31 +00:00
|
|
|
run-name: Devel build and tests
|
2023-03-22 13:44:41 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- devel
|
2024-01-19 23:20:20 +00:00
|
|
|
- 'ci/**'
|
|
|
|
- 'CI/**'
|
2023-03-22 13:44:41 +00:00
|
|
|
jobs:
|
2023-10-31 23:08:17 +00:00
|
|
|
build-simple:
|
|
|
|
name: Simple build tests
|
2023-12-04 17:50:29 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler: [ gcc, clang ]
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-03-22 13:44:41 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 20:32:28 +00:00
|
|
|
- run: sudo modprobe btrfs
|
2023-12-06 13:51:35 +00:00
|
|
|
- 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 sphinx-rtd-theme-common python3-sphinx-rtd-theme
|
2023-03-22 13:44:41 +00:00
|
|
|
- name: Configure
|
2023-12-04 17:50:29 +00:00
|
|
|
run: ./autogen.sh && CC=${{ matrix.compiler}} ./configure
|
2023-11-01 20:32:28 +00:00
|
|
|
- name: Documentation
|
|
|
|
run: make V=1 -C Documentation
|
2023-09-12 22:47:30 +00:00
|
|
|
- name: Make static
|
|
|
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
|
|
|
|
- name: Make box.static
|
|
|
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static
|
2023-10-31 23:08:17 +00:00
|
|
|
build-musl:
|
|
|
|
name: Build test on musl
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-10-31 23:08:17 +00:00
|
|
|
steps:
|
|
|
|
- name: Musl build
|
|
|
|
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
|
|
|
|
test-quick:
|
|
|
|
name: Quick tests
|
2023-12-04 17:50:29 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler: [ gcc, clang ]
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-10-31 23:08:17 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 20:32:28 +00:00
|
|
|
- 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 libaio-dev liburing-dev attr jq
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Configure
|
2023-12-04 17:50:29 +00:00
|
|
|
run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
2023-12-01 00:39:27 +00:00
|
|
|
- name: Test internal APIs
|
|
|
|
run: make test-api
|
2023-05-26 17:12:31 +00:00
|
|
|
- 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
|
2023-11-01 20:32:28 +00:00
|
|
|
test-mkfs:
|
|
|
|
name: Test mkfs.btrfs
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-10-31 23:08:17 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-31 23:08:17 +00:00
|
|
|
- run: sudo modprobe btrfs
|
2023-11-01 20:32:28 +00:00
|
|
|
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Configure
|
2023-11-01 20:32:28 +00:00
|
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
|
|
|
- name: Tests mkfs
|
|
|
|
run: sudo make TEST_LOG=dump test-mkfs
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: mkfs-tests-results.txt
|
|
|
|
path: tests/mkfs-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|
2023-11-01 20:32:28 +00:00
|
|
|
test-check:
|
|
|
|
name: Test btrfs check
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-11-01 20:32:28 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 20:32:28 +00:00
|
|
|
- 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 libaio-dev liburing-dev attr jq
|
|
|
|
- name: Configure
|
|
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Tests check
|
|
|
|
run: sudo make TEST_LOG=dump test-check
|
|
|
|
- name: Tests check (lowmem)
|
|
|
|
run: sudo make TEST_LOG=dump test-check-lowmem
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: fsck-tests-results.txt
|
|
|
|
path: tests/fsck-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|
2023-11-01 20:32:28 +00:00
|
|
|
test-misc:
|
|
|
|
name: Test misc
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-11-01 20:32:28 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 20:32:28 +00:00
|
|
|
- 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 libaio-dev liburing-dev attr jq
|
|
|
|
- name: Configure
|
|
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Tests misc
|
|
|
|
run: sudo make TEST_LOG=dump test-misc
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: misc-tests-results.txt
|
|
|
|
path: tests/misc-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|
2024-01-17 02:27:35 +00:00
|
|
|
test-convert:
|
|
|
|
name: Test btrfs-convert
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2024-01-17 02:27:35 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-17 02:27:35 +00:00
|
|
|
- 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 libaio-dev liburing-dev attr jq
|
|
|
|
- name: Configure
|
|
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
|
|
|
- name: Tests convert
|
|
|
|
run: sudo make TEST_LOG=dump test-convert
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: convert-tests-results.txt
|
|
|
|
path: tests/convert-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|
2023-11-01 20:32:28 +00:00
|
|
|
test-other:
|
|
|
|
name: Test cli, fuzz
|
2024-06-13 00:58:25 +00:00
|
|
|
runs-on: ubuntu-24.04
|
2023-11-01 20:32:28 +00:00
|
|
|
steps:
|
2024-01-30 18:32:58 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 20:32:28 +00:00
|
|
|
- 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 libaio-dev liburing-dev attr jq
|
|
|
|
- name: Configure
|
|
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
|
|
- name: Make
|
|
|
|
run: make V=1
|
|
|
|
- name: Tests cli
|
|
|
|
run: sudo make TEST_LOG=dump test-cli
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: cli-tests-results.txt
|
|
|
|
path: tests/cli-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|
2023-10-31 23:08:17 +00:00
|
|
|
- name: Tests fuzz
|
|
|
|
run: sudo make TEST_LOG=dump test-fuzz
|
2024-01-31 16:57:04 +00:00
|
|
|
- name: Save logs to artifacts
|
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: fuzz-tests-results.txt
|
|
|
|
path: tests/fuzz-tests-results.txt
|
|
|
|
if-no-files-found: ignore
|