From 0a841bae9388b9b2f5881412a23b9d434f75a7a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20FRANC?= Date: Thu, 17 Feb 2022 14:13:23 +0100 Subject: [PATCH] arch/mips: add test script for mips arch in docker to test go-udev --- test_mips.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test_mips.sh diff --git a/test_mips.sh b/test_mips.sh new file mode 100755 index 0000000..0408f7b --- /dev/null +++ b/test_mips.sh @@ -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 +