diff options
author | Timo Wilken | 2023-11-01 22:30:30 +0100 |
---|---|---|
committer | Timo Wilken | 2023-11-01 22:30:30 +0100 |
commit | 9b57cf604c1544ca63dea1a454f696b02002c8f3 (patch) | |
tree | ab45018bd66f2e95f5f3903a27d06b9632f64549 /Makefile | |
parent | bc67572084726572972170f0f2133f4050e8136d (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-- | Makefile | 12 |
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) $< |