1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Add --version tests

They fail.
This commit is contained in:
Johan Walles 2019-07-07 18:23:57 +02:00
parent 92b0133b25
commit 84ae2cb21c

View File

@ -30,6 +30,10 @@ if ./moar does-not-exist >& /dev/null ; then
exit 1
fi
echo Test --version...
./moar --version > /dev/null # Should exit with code 0
diff -u <(./moar --version) <(git describe --tags --dirty)
# Ensure we can cross compile
GOOS=linux GOARCH=386 go build
GOOS=darwin GOARCH=amd64 go build