test 531 B

1234567891011121314151617
  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="-I|-Xpreprocessor"
  10. if [ -x "$(which gotestsum)" ]; then
  11. gotestsum ./...
  12. else
  13. go test -v ./...
  14. fi