Skip to content

Commit 0a841ba

Browse files
committed
arch/mips: add test script for mips arch in docker to test go-udev
1 parent a3c2a7a commit 0a841ba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test_mips.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
cd $(dirname $0) || exit 1
4+
GO_UDEV="go-udev-mips64"
5+
GOOS=linux GOARCH=mips64 go build -o ${GO_UDEV}
6+
chmod +x ./${GO_UDEV}
7+
docker run -it --rm -v "$PWD:$PWD" -w $PWD dockcross/linux-mips ./${GO_UDEV} -info
8+
# docker run -it --net=host -v=/dev:/dev --rm -v "$PWD:$PWD" -w $PWD dockcross/linux-mips ./${GO_UDEV} -monitor
9+

0 commit comments

Comments
 (0)