test 460 B

12345678910111213
  1. #!/bin/sh
  2. if [ -x "$(which brew)" ]; then
  3. export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
  4. export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
  5. export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix cfitsio)/lib/lib/pkgconfig"
  6. export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,-no_warn_duplicate_libraries"
  7. fi
  8. export CGO_LDFLAGS_ALLOW="-s|-w"
  9. export CGO_CFLAGS_ALLOW="-Xpreprocessor"
  10. go test ./...