aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-27 22:22:34 -0600
committerCraig Jennings <c@cjennings.net>2026-01-27 22:22:34 -0600
commitde1f9f1ed44c9f97d01204bb3b1efb3ffaa48ec1 (patch)
treea3e488a5462875a3d107c3a357a23c0ae1d22885
parent24e1c3ce87e7997991b1a96bf5dd4e4fce892e77 (diff)
downloadarchsetup-de1f9f1ed44c9f97d01204bb3b1efb3ffaa48ec1.tar.gz
archsetup-de1f9f1ed44c9f97d01204bb3b1efb3ffaa48ec1.zip
feat(testing): add make test target and display report on completion
Add 'make test' Makefile target to run full VM integration test suite. Print test report to terminal after generation for immediate visibility.
-rw-r--r--Makefile8
-rwxr-xr-xscripts/testing/run-test.sh4
2 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3679c86..bbd5d28 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ DE := $(filter dwm hyprland,$(MAKECMDGOALS))
# Extract DEST from command line for import (e.g., 'make import common' -> DEST=common)
DEST := $(filter common dwm hyprland,$(MAKECMDGOALS))
-.PHONY: help stow restow reset unstow import common dwm hyprland
+.PHONY: help stow restow reset unstow import test common dwm hyprland
# Default target - show help
help:
@@ -29,6 +29,7 @@ help:
@echo " reset Resolve conflicts, keep repo version - requires DE"
@echo " unstow Remove all symlinks - requires DE"
@echo " import Import new app configs into repo (fzf) - requires dest"
+ @echo " test Run full VM test suite and report results"
@echo ""
@echo "Examples:"
@echo " make stow dwm # Fresh DWM install (common + dwm)"
@@ -37,6 +38,7 @@ help:
@echo " make reset hyprland # Resolve conflicts, keep repo version"
@echo " make import common # Import configs to common/"
@echo " make import hyprland # Import configs to hyprland/"
+ @echo " make test # Run full VM integration test"
@echo ""
# Prevent 'common', 'dwm' and 'hyprland' from being treated as file targets
@@ -121,3 +123,7 @@ import: check-dest
cd $(DOTFILES) && $(STOW) --restow $(DEST); \
echo ""; \
echo "Done. Don't forget to: git add -A && git commit"
+
+# Test - run full VM integration test suite
+test:
+ @bash scripts/testing/run-test.sh
diff --git a/scripts/testing/run-test.sh b/scripts/testing/run-test.sh
index a600870..c65961d 100755
--- a/scripts/testing/run-test.sh
+++ b/scripts/testing/run-test.sh
@@ -319,6 +319,10 @@ EOFREPORT
info "Test report saved: $REPORT_FILE"
+# Display report to terminal
+echo ""
+cat "$REPORT_FILE"
+
# Cleanup or keep VM
section "Cleanup"