File: test-architectures.sh

package info (click to toggle)
golang-github-klauspost-cpuid 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 1,280 kB
  • sloc: asm: 117; sh: 12; makefile: 3
file content (15 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

go tool dist list | while IFS=/ read os arch; do
    echo "Checking $os/$arch..."
    echo " normal"
    GOARCH=$arch GOOS=$os go build -o /dev/null .
    echo " noasm"
    GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null .
    echo " appengine"
    GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null .
    echo " noasm,appengine"
    GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null .
done