From 9b57cf604c1544ca63dea1a454f696b02002c8f3 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 1 Nov 2023 22:30:30 +0100 Subject: Add a simple test script This only evaluates each home and system config to make sure they're valid. Move the "nonfree installer" declaration to a subdirectory since evaluating it does too much -- it seems to trigger a "guix pull" somehow. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..6433bd9f --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: test tw/system/%.test tw/home/%.test + +systems = $(wildcard tw/system/*.scm) +homes = $(wildcard tw/home/*.scm) + +test: $(homes:.scm=.test) $(systems:.scm=.test) + +tw/home/%.test: tw/home/%.scm + guix home build -nL $(CURDIR) $< + +tw/system/%.test: tw/system/%.scm + guix system build -nL $(CURDIR) $< -- cgit v1.2.3