aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-11-01 22:30:30 +0100
committerTimo Wilken2023-11-01 22:30:30 +0100
commit9b57cf604c1544ca63dea1a454f696b02002c8f3 (patch)
treeab45018bd66f2e95f5f3903a27d06b9632f64549
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.
-rw-r--r--Makefile12
-rw-r--r--tw/system/installer/nonfree.scm (renamed from tw/system/nonfree-installer.scm)2
2 files changed, 13 insertions, 1 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) $<
diff --git a/tw/system/nonfree-installer.scm b/tw/system/installer/nonfree.scm
index bc363e95..433d4302 100644
--- a/tw/system/nonfree-installer.scm
+++ b/tw/system/installer/nonfree.scm
@@ -1,4 +1,4 @@
-(define-module (tw system nonfree-installer)
+(define-module (tw system installer nonfree)
#:use-module (gnu packages admin)
#:use-module (gnu packages linux)
#:use-module (gnu packages package-management)