Skip to content

Commit

Permalink
arch/mips: add test script for mips arch in docker to test go-udev
Browse files Browse the repository at this point in the history
  • Loading branch information
pilebones committed Feb 17, 2022
1 parent a3c2a7a commit 0a841ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test_mips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cd $(dirname $0) || exit 1
GO_UDEV="go-udev-mips64"
GOOS=linux GOARCH=mips64 go build -o ${GO_UDEV}
chmod +x ./${GO_UDEV}
docker run -it --rm -v "$PWD:$PWD" -w $PWD dockcross/linux-mips ./${GO_UDEV} -info
# docker run -it --net=host -v=/dev:/dev --rm -v "$PWD:$PWD" -w $PWD dockcross/linux-mips ./${GO_UDEV} -monitor

0 comments on commit 0a841ba

Please sign in to comment.