commit 554f5a8a640f55604937386ba9fc8bf4cd626c28
parent 68b7a334fd5c47ffb4af0f5fac30ad2c9b4bb6e6
Author: Sean Enck <sean@ttypty.com>
Date: Sun, 30 Jul 2023 07:24:45 -0400
cleanup/split out test items in make, fix requiring binary for runs
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -14,9 +14,11 @@ endif
go build $(GOFLAGS) -ldflags "-X main.version=$(VERSION)" -o $@ cmd/main.go
unittests:
- $(VARS) go test -v ./...
+ $(VARS) go test ./...
-check: $(TARGET) unittests
+check: unittests runs
+
+runs: $(TARGET)
$(VARS) make -C tests
clean:
diff --git a/tests/run.sh b/tests/run.sh
@@ -194,6 +194,10 @@ fi
_unset
export LOCKBOX_ENV="none"
+if [ ! -x "${LB_BINARY}" ]; then
+ echo "binary missing?"
+ exit 1
+fi
if ! ${LB_BINARY} help >/dev/null; then
echo "help unavailable by default...fatal"
exit 1