aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-24 14:26:41 -0300
committerEuAndreh <eu@euandre.org>2023-03-24 14:26:41 -0300
commitc6dbaa3de23abf05635b006900908efcf01e78f2 (patch)
tree93787922ad34abfbfd1552b87541002dc597c5f9 /Makefile
parentMakefile: Make "src/bin/paku" a member of $(derived-assets) (diff)
downloadpackage-repository-c6dbaa3de23abf05635b006900908efcf01e78f2.tar.gz
package-repository-c6dbaa3de23abf05635b006900908efcf01e78f2.tar.xz
Makefile: Split Guix tests from build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 979e707..c63bb41 100644
--- a/Makefile
+++ b/Makefile
@@ -48,34 +48,17 @@ result-packages result-packages.sentinel: \
-f src/org/euandre/queue.scm
touch result-packages.sentinel
-local-files = \
- /etc/postfix/master.cf \
- /etc/postfix/main.cf \
-
-internet-files = \
- $(local-files) \
- /etc/sasl2/smtpd.conf \
- /etc/dkimproxyout.conf \
- /etc/dovecot/dovecot.conf \
-
result-services.sentinel: result-local.sentinel result-internet.sentinel
touch $@
result-local result-local.sentinel: result-packages.sentinel
rm -f result-local
guix system -v3 -Lsrc/ -K -r result-local build tests/local/system.scm
- for f in $(local-files); do \
- diff -U5 --color=always result-local$$f tests/local$$f; \
- done
touch result-local.sentinel
-result-internet result-internet.sentinel: \
- result-packages.sentinel $(test-config-files)
+result-internet result-internet.sentinel: result-packages.sentinel
rm -f result-internet
guix system -v3 -Lsrc/ -K -r result-internet build tests/internet/system.scm
- for f in $(internet-files); do \
- diff -U5 --color=always result-internet$$f tests/internet$$f; \
- done
touch result-internet.sentinel
@@ -122,6 +105,24 @@ clean:
*.sentinel \
+local-files = \
+ /etc/postfix/master.cf \
+ /etc/postfix/main.cf \
+
+internet-files = \
+ $(local-files) \
+ /etc/sasl2/smtpd.conf \
+ /etc/dkimproxyout.conf \
+ /etc/dovecot/dovecot.conf \
+
+check-guix: $(test-config-files)
+ for f in $(local-files); do \
+ diff -U5 --color=always result-local$$f tests/local$$f; \
+ done
+ for f in $(internet-files); do \
+ diff -U5 --color=always result-internet$$f tests/internet$$f; \
+ done
+
HTTP-REMOTE = 'https://euandre.org/s/package-repository'
GIT-REMOTE = 'git://euandre.org/package-repository'
check-ubuntu-x86_64-deb:
@@ -137,4 +138,4 @@ check-debian-x86_64-deb:
check-debian: check-debian-x86_64-deb
-check: check-ubuntu check-debian
+check: check-guix check-ubuntu check-debian