scripts: add a basic test runner for gotools
- ID
f3aa39b- date
2026-11-04 05:36:07+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
4df88fb- message
scripts: add a basic test runner for gotools- changed files
1 file, 14 additions
Changed files
scripts/run_gotools_tests.sh (0 → 238)
diff --git a/scripts/run_gotools_tests.sh b/scripts/run_gotools_tests.sh
new file mode 100755
index 0000000..0dfab2a
--- /dev/null
+++ b/scripts/run_gotools_tests.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+set -o errexit
+set -o nounset
+
+# Print a command in blue, then run the command
+run_command() {
+ echo ""
+ echo -e "\033[34m-> $@\033[0m"
+ bash -c "$@"
+}
+
+run_command "go fmt ./..."
+run_command "go test ./..."