diff options
author | EuAndreh <eu@euandre.org> | 2023-03-24 14:26:41 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-24 14:26:41 -0300 |
commit | c6dbaa3de23abf05635b006900908efcf01e78f2 (patch) | |
tree | 93787922ad34abfbfd1552b87541002dc597c5f9 /Makefile | |
parent | Makefile: Make "src/bin/paku" a member of $(derived-assets) (diff) | |
download | package-repository-c6dbaa3de23abf05635b006900908efcf01e78f2.tar.gz package-repository-c6dbaa3de23abf05635b006900908efcf01e78f2.tar.xz |
Makefile: Split Guix tests from build
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -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 |