ci/ts
6function run_go_tests() {
7 # Look for changed Go packages, and pass the list to `go test`.
8 if test -e
"./tool/go"; then
15 git ls-files --modified
\
18 | xargs -I
'{}' echo "./{}" \
22 print_info
"-> $GO test $CHANGED_PACKAGES"
23 "$GO" test $CHANGED_PACKAGES
26function run_rust_tests() {
27 print_info
"-> cargo fmt"
32 print_info
"-> cargo build"
37 print_info -n
"-> cargo test"
48# If there's a `scripts` folder with a test script, run that
49elif find
"scripts" -name
'run_*_tests.sh' >/dev/null
2>
&1
51 print_info
"-> bash scripts/run_*_tests.sh"
52 bash scripts/run_*_tests.sh
55 echo "No run_*_tests.sh runner found in scripts!" 2>
&1