summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Wilken2023-11-01 22:30:30 +0100
committerTimo Wilken2023-11-01 22:30:30 +0100
commit9b57cf604c1544ca63dea1a454f696b02002c8f3 (patch)
treeab45018bd66f2e95f5f3903a27d06b9632f64549 /Makefile
parentbc67572084726572972170f0f2133f4050e8136d (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
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) $<