From fe33ec2787f8d34d6d03ee37099b0c32b3245362 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Wed, 26 Jun 2024 13:52:38 +0100 Subject: [PATCH] More BSDs. --- .github/workflows/test.yml | 24 ++++++++++++++++++------ README.md | 3 ++- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0585ab8..3521386b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,6 +83,18 @@ jobs: run: go test -v ./... test-bsd: + strategy: + matrix: + os: + - name: freebsd + version: '14.0' + flags: '-test.v' + - name: openbsd + version: '7.5' + flags: '-test.v -test.short -test.parallel=1' + - name: netbsd + version: '10.0' + flags: '-test.v -test.short -test.parallel=1' runs-on: ubuntu-latest needs: test @@ -96,15 +108,15 @@ jobs: - name: Build env: - GOOS: freebsd - TESTFLAGS: '-test.v' + GOOS: ${{ matrix.os.name }} + TESTFLAGS: ${{ matrix.os.flags }} run: .github/workflows/build-test.sh - name: Test uses: cross-platform-actions/action@v0.24.0 with: - operating_system: freebsd - version: '14.0' + operating_system: ${{ matrix.os.name }} + version: ${{ matrix.os.version }} shell: bash run: . ./test.sh sync_files: runner-to-vm @@ -149,7 +161,7 @@ jobs: - name: Build illumos env: GOOS: illumos - TESTFLAGS: '-test.v -test.short' + TESTFLAGS: '-test.v -test.short -test.parallel=1' run: .github/workflows/build-test.sh - name: Test illumos @@ -162,7 +174,7 @@ jobs: - name: Build Solaris env: GOOS: solaris - TESTFLAGS: '-test.v -test.short' + TESTFLAGS: '-test.v -test.short -test.parallel=1' run: .github/workflows/build-test.sh - name: Test Solaris diff --git a/README.md b/README.md index 25b2ccbe..4cd868b0 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,8 @@ It also benefits greatly from [SQLite's](https://sqlite.org/testing.html) and Every commit is [tested](.github/workflows/test.yml) on Linux (amd64/arm64/386/riscv64/s390x), macOS (amd64/arm64), -Windows (amd64), FreeBSD (amd64), illumos (amd64), and Solaris (amd64). +Windows (amd64), FreeBSD (amd64), OpenBSD (amd64), NetBSD (amd64), +illumos (amd64), and Solaris (amd64). The Go VFS is tested by running SQLite's [mptest](https://github.com/sqlite/sqlite/blob/master/mptest/mptest.c).