Skip to content

Commit d694e97

Browse files
committed
Test ppc64le.
1 parent 90218c0 commit d694e97

File tree

11 files changed

+14
-10
lines changed

11 files changed

+14
-10
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ jobs:
153153
- name: Test riscv64 (interpreter)
154154
run: GOARCH=riscv64 go test -v -short ./...
155155

156+
- name: Test ppc64le (interpreter)
157+
run: GOARCH=ppc64le go test -v -short ./...
158+
156159
- name: Test s390x (big-endian, z/OS demo)
157160
run: GOARCH=s390x go test -v -short -tags sqlite3_flock ./...
158161

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ It also benefits greatly from [SQLite's](https://sqlite.org/testing.html) and
110110
[wazero's](https://tetrate.io/blog/introducing-wazero-from-tetrate/#:~:text=Rock%2Dsolid%20test%20approach) thorough testing.
111111

112112
Every commit is [tested](https://github.com/ncruces/go-sqlite3/wiki/Test-matrix) on
113-
Linux (amd64/arm64/386/riscv64/s390x), macOS (amd64/arm64),
113+
Linux (amd64/arm64/386/riscv64/ppc64le/s390x), macOS (amd64/arm64),
114114
Windows (amd64), FreeBSD (amd64), OpenBSD (amd64), NetBSD (amd64),
115115
illumos (amd64), and Solaris (amd64).
116116

internal/alloc/alloc_slice.go

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

33
package alloc
44

internal/util/mmap.go

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

33
package util
44

internal/util/mmap_other.go

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

33
package util
44

vfs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ to check if your build supports file locking.
4646

4747
### Write-Ahead Logging
4848

49-
On 64-bit Unix, this module uses `mmap` to implement
49+
On 64-bit little-endian Unix, this module uses `mmap` to implement
5050
[shared-memory for the WAL-index](https://sqlite.org/wal.html#implementation_of_shared_memory_for_the_wal_index),
5151
like SQLite.
5252

vfs/os_f2fs_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (amd64 || arm64 || riscv64) && !sqlite3_nosys
1+
//go:build (amd64 || arm64 || riscv64 || ppc64le) && !sqlite3_nosys
22

33
package vfs
44

@@ -9,6 +9,7 @@ import (
99
)
1010

1111
const (
12+
// https://godbolt.org/z/1PcK5vea3
1213
_F2FS_IOC_START_ATOMIC_WRITE = 62721
1314
_F2FS_IOC_COMMIT_ATOMIC_WRITE = 62722
1415
_F2FS_IOC_ABORT_ATOMIC_WRITE = 62725

vfs/os_std_atomic.go

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

33
package vfs
44

vfs/shm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (darwin || linux) && (amd64 || arm64 || riscv64) && !(sqlite3_flock || sqlite3_noshm || sqlite3_nosys)
1+
//go:build (darwin || linux) && (amd64 || arm64 || riscv64 || ppc64le) && !(sqlite3_flock || sqlite3_noshm || sqlite3_nosys)
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 || sqlite3_flock) && (amd64 || arm64 || riscv64) && !(sqlite3_noshm || sqlite3_nosys)
1+
//go:build (freebsd || openbsd || netbsd || dragonfly || illumos || sqlite3_flock) && (amd64 || arm64 || riscv64 || ppc64le) && !(sqlite3_noshm || sqlite3_nosys)
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 !(darwin || linux || freebsd || openbsd || netbsd || dragonfly || illumos || sqlite3_flock) || !(amd64 || arm64 || riscv64) || sqlite3_noshm || sqlite3_nosys
1+
//go:build !(darwin || linux || freebsd || openbsd || netbsd || dragonfly || illumos || sqlite3_flock) || !(amd64 || arm64 || riscv64 || ppc64le) || sqlite3_noshm || sqlite3_nosys
22

33
package vfs
44

0 commit comments

Comments
 (0)