| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # check there are no formatting issues |
| 6 | GOFMT_LINES=`gofmtscip-shell system . . gofmt. -l . | wcscip-shell system . . wc. -l | xargsscip-shell system . . xargs.` |
| 7 | testscip-shell system . . test. $GOFMT_LINES -eq 0 || echoscip-shell system . . echo. "gofmt needs to be run, ${GOFMT_LINES} files have issues" |
| 8 | |
| 9 | # run the tests for the root package |
| 10 | goscip-shell system . . go. test . |