Skip to content

Commit f62cef3

Browse files
committed
test.sh: Test assembly masking on arm64
1 parent 68fc887 commit f62cef3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/test.sh

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ cd -- "$(dirname "$0")/.."
1111
go test "$@" ./...
1212
)
1313

14+
(
15+
GOARCH=arm64 go test -c -o ./ci/out/websocket-arm64.test "$@" .
16+
if [ "$#" -eq 0 ]; then
17+
if [ "${CI-}" ]; then
18+
sudo apt-get update
19+
sudo apt-get install -y qemu-user-static
20+
ln -s /usr/bin/qemu-aarch64-static /usr/local/bin/qemu-aarch64
21+
fi
22+
qemu-aarch64 ./ci/out/websocket-arm64.test -test.run=TestMask
23+
fi
24+
)
25+
26+
1427
go install github.com/agnivade/wasmbrowsertest@latest
1528
go test --race --bench=. --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./...
1629
sed -i.bak '/stringer\.go/d' ci/out/coverage.prof

0 commit comments

Comments
 (0)