generate.sh 923 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. set -eu
  3. go test -p 1 -tags stubpkg ./internal/... \
  4. > testdata/go-test-quiet.out \
  5. 2> testdata/go-test-quiet.err \
  6. | true
  7. go test -p 1 -v -tags stubpkg ./internal/... \
  8. > testdata/go-test-verbose.out \
  9. 2> testdata/go-test-verbose.err \
  10. | true
  11. go test -p 1 -json -tags stubpkg ./internal/... \
  12. > testdata/go-test-json.out \
  13. 2> testdata/go-test-json.err \
  14. | true
  15. go test -p 1 -json -timeout 10ms -tags 'stubpkg timeout' ./internal/... \
  16. > testdata/go-test-json-with-timeout.out \
  17. 2> testdata/go-test-json-with-timeout.err \
  18. | true
  19. go test -p 1 -json -tags 'stubpkg panic' ./internal/... \
  20. > testdata/go-test-json-with-panic.out \
  21. 2> testdata/go-test-json-with-panic.err \
  22. | true
  23. go test -p 1 -json -tags stubpkg -cover ./internal/... \
  24. > testdata/go-test-json-with-cover.out \
  25. 2> testdata/go-test-json-with-cover.err \
  26. | true