Skip to content

Commit 3132b27

Browse files
committed
Test more, log less.
1 parent 8f9a6ca commit 3132b27

File tree

10 files changed

+32
-31
lines changed

10 files changed

+32
-31
lines changed

.github/workflows/build-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
echo 'set -eu' > test.sh
4+
echo 'set -eux' > test.sh
55

66
for p in $(go list ./...); do
77
dir=".${p#github.com/ncruces/go-sqlite3}"

.github/workflows/test.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@ jobs:
5151
run: go vet ./...
5252

5353
- name: Build
54-
run: go build -v ./...
54+
run: go build ./...
5555

5656
- name: Test
57-
run: go test -v ./... -bench . -benchtime=1x
57+
run: go test ./... -bench . -benchtime=1x
5858

5959
- name: Test BSD locks
60-
run: go test -v -tags sqlite3_flock ./...
60+
run: go test -tags sqlite3_flock ./...
6161
if: matrix.os != 'windows-latest'
6262

6363
- name: Test dot locks
64-
run: go test -v -tags sqlite3_dotlk ./...
64+
run: go test -tags sqlite3_dotlk ./...
6565
if: matrix.os != 'windows-latest'
6666

6767
- name: Test modules
6868
shell: bash
6969
run: |
7070
go work init .
7171
go work use -r embed gormlite
72-
go test -v ./embed/bcw2/...
72+
go test ./embed/bcw2/...
7373
7474
- name: Test GORM
7575
shell: bash
@@ -99,21 +99,19 @@ jobs:
9999
os:
100100
- name: freebsd
101101
version: '14.3'
102-
flags: '-test.v'
103102
- name: netbsd
104103
version: '10.1'
105-
flags: '-test.v'
106104
- name: freebsd
107105
arch: arm64
108106
version: '14.3'
109-
flags: '-test.v -test.short'
107+
tflags: '-test.short'
110108
- name: netbsd
111109
arch: arm64
112110
version: '10.1'
113-
flags: '-test.v -test.short'
111+
tflags: '-test.short'
114112
- name: openbsd
115113
version: '7.8'
116-
flags: '-test.v -test.short'
114+
tflags: '-test.short'
117115
runs-on: ubuntu-latest
118116
needs: test
119117

@@ -124,7 +122,7 @@ jobs:
124122
env:
125123
GOOS: ${{ matrix.os.name }}
126124
GOARCH: ${{ matrix.os.arch }}
127-
TESTFLAGS: ${{ matrix.os.flags }}
125+
TESTFLAGS: ${{ matrix.os.tflags }}
128126
run: .github/workflows/build-test.sh
129127

130128
- name: Test
@@ -143,14 +141,11 @@ jobs:
143141
os:
144142
- name: dragonfly
145143
action: 'vmactions/dragonflybsd-vm@v1'
146-
tflags: '-test.v'
147144
- name: illumos
148145
action: 'vmactions/omnios-vm@v1'
149-
tflags: '-test.v'
150146
- name: solaris
151147
action: 'vmactions/solaris-vm@v1'
152148
bflags: '-tags sqlite3_dotlk'
153-
tflags: '-test.v'
154149
runs-on: ubuntu-latest
155150
needs: test
156151

@@ -187,7 +182,7 @@ jobs:
187182
GOARCH: wasm
188183
GOWASIRUNTIME: wasmtime
189184
GOWASIRUNTIMEARGS: '--env CI=true'
190-
run: go test -v -short -tags sqlite3_dotlk -skip Example ./...
185+
run: go test -short -tags sqlite3_dotlk -skip Example ./...
191186

192187
test-qemu:
193188
runs-on: ubuntu-latest
@@ -200,16 +195,19 @@ jobs:
200195
with: { go-version: stable }
201196

202197
- name: Test 386 (32-bit)
203-
run: GOARCH=386 go test -v -short ./...
198+
run: GOARCH=386 go test -short ./...
204199

205200
- name: Test riscv64 (interpreter)
206-
run: GOARCH=riscv64 go test -v -short ./...
201+
run: GOARCH=riscv64 go test -short ./...
207202

208203
- name: Test ppc64le (interpreter)
209-
run: GOARCH=ppc64le go test -v -short ./...
204+
run: GOARCH=ppc64le go test -short ./...
205+
206+
- name: Test loong64 (interpreter)
207+
run: GOARCH=loong64 go test -short ./...
210208

211209
- name: Test s390x (big-endian)
212-
run: GOARCH=s390x go test -v -short -tags sqlite3_dotlk ./...
210+
run: GOARCH=s390x go test -short -tags sqlite3_dotlk ./...
213211

214212
test-linuxarm:
215213
runs-on: ubuntu-24.04-arm
@@ -221,7 +219,10 @@ jobs:
221219
with: { go-version: stable }
222220

223221
- name: Test
224-
run: go test -v ./...
222+
run: go test ./...
223+
224+
- name: Test arm (32-bit)
225+
run: GOARCH=arm GOARM=7 go test -short ./...
225226

226227
test-macintel:
227228
runs-on: macos-15-intel
@@ -233,7 +234,7 @@ jobs:
233234
with: { go-version: stable }
234235

235236
- name: Test
236-
run: go test -v ./...
237+
run: go test ./...
237238

238239
test-winarm:
239240
runs-on: windows-11-arm
@@ -245,4 +246,4 @@ jobs:
245246
with: { go-version: stable }
246247

247248
- name: Test
248-
run: go test -v ./...
249+
run: go test ./...

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ It also benefits greatly from [SQLite's](https://sqlite.org/testing.html) and
8484
thorough testing.
8585

8686
Every commit is tested on:
87-
* Linux: amd64, arm64, 386, riscv64, ppc64le, s390x
87+
* Linux: amd64, arm64, 386, arm, riscv64, ppc64le, loong64, s390x
8888
* macOS: amd64, arm64
8989
* Windows: amd64, arm64
9090
* BSD:

vfs/shm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ((linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le)) || sqlite3_flock || sqlite3_dotlk
1+
//go:build ((linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64)) || sqlite3_flock || sqlite3_dotlk
22

33
package vfs
44

vfs/shm_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ((freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le) && !sqlite3_dotlk) || sqlite3_flock
1+
//go:build ((freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64) && !sqlite3_dotlk) || sqlite3_flock
22

33
package vfs
44

vfs/shm_copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (windows && (386 || arm || amd64 || arm64 || riscv64 || ppc64le)) || sqlite3_dotlk
1+
//go:build (windows && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64)) || sqlite3_dotlk
22

33
package vfs
44

vfs/shm_memlk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ((freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le)) || sqlite3_flock || sqlite3_dotlk
1+
//go:build ((freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64)) || sqlite3_flock || sqlite3_dotlk
22

33
package vfs
44

vfs/shm_ofd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (linux || darwin) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le) && !(sqlite3_flock || sqlite3_dotlk)
1+
//go:build (linux || darwin) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64) && !(sqlite3_flock || sqlite3_dotlk)
22

33
package vfs
44

vfs/shm_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !(((linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le)) || sqlite3_flock || sqlite3_dotlk)
1+
//go:build !(((linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos) && (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64)) || sqlite3_flock || sqlite3_dotlk)
22

33
package vfs
44

vfs/shm_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (386 || arm || amd64 || arm64 || riscv64 || ppc64le) && !sqlite3_dotlk
1+
//go:build (386 || arm || amd64 || arm64 || riscv64 || ppc64le || loong64) && !sqlite3_dotlk
22

33
package vfs
44

0 commit comments

Comments
 (0)