Skip to content

Commit c0b289d

Browse files
committed
More BSDs.
1 parent a84d905 commit c0b289d

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ jobs:
8383
run: go test -v ./...
8484

8585
test-bsd:
86+
strategy:
87+
matrix:
88+
os:
89+
- name: freebsd
90+
version: '14.0'
91+
flags: '-test.v'
92+
- name: openbsd
93+
version: '7.5'
94+
flags: '-test.v -test.short'
95+
- name: netbsd
96+
version: '10.0'
97+
flags: '-test.v -test.short'
8698
runs-on: ubuntu-latest
8799
needs: test
88100

@@ -96,15 +108,15 @@ jobs:
96108

97109
- name: Build
98110
env:
99-
GOOS: freebsd
100-
TESTFLAGS: '-test.v'
111+
GOOS: ${{ matrix.os.name }}
112+
TESTFLAGS: ${{ matrix.os.flags }}
101113
run: .github/workflows/build-test.sh
102114

103115
- name: Test
104116
uses: cross-platform-actions/[email protected]
105117
with:
106-
operating_system: freebsd
107-
version: '14.0'
118+
operating_system: ${{ matrix.os.name }}
119+
version: ${{ matrix.os.version }}
108120
shell: bash
109121
run: . ./test.sh
110122
sync_files: runner-to-vm

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ It also benefits greatly from [SQLite's](https://sqlite.org/testing.html) and
9191

9292
Every commit is [tested](.github/workflows/test.yml) on
9393
Linux (amd64/arm64/386/riscv64/s390x), macOS (amd64/arm64),
94-
Windows (amd64), FreeBSD (amd64), illumos (amd64), and Solaris (amd64).
94+
Windows (amd64), FreeBSD (amd64), OpenBSD (amd64), NetBSD (amd64),
95+
illumos (amd64), and Solaris (amd64).
9596

9697
The Go VFS is tested by running SQLite's
9798
[mptest](https://github.com/sqlite/sqlite/blob/master/mptest/mptest.c).

tests/stmt_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ func TestStmt_ColumnTime(t *testing.T) {
618618
}
619619

620620
func TestStmt_Error(t *testing.T) {
621+
if testing.Short() {
622+
t.Skip("skipping in short mode")
623+
}
621624
if bits.UintSize < 64 {
622625
t.Skip("skipping on 32-bit")
623626
}

0 commit comments

Comments
 (0)