aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-17 07:04:22 -0300
committerEuAndreh <eu@euandre.org>2023-03-17 07:06:50 -0300
commit5b85b1368f81b7eed8efef9d07ae8c077bac73c4 (patch)
tree7f05cb1685896a7af1a78ee1196fc93aab6ef828 /Makefile
parentqueue.scm: Remove FIXME markers froom inside main.cf content (diff)
downloadpackage-repository-5b85b1368f81b7eed8efef9d07ae8c077bac73c4.tar.gz
package-repository-5b85b1368f81b7eed8efef9d07ae8c077bac73c4.tar.xz
Test for expected output of Postfix config files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9cdb2db..26893ea 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,20 @@
.POSIX:
+.SUFFIXES:
+.SUFFIXES: .in
+
+.in:
+ sed \
+ -e "s|@HOSTNAME@|`hostname`|g" \
+ < $< > $@
+ if [ -x $< ]; then chmod +x $@; fi
+
+
all: EuAndreh.key guix nix
+
guix: guix-packages guix-services
guix-packages:
@@ -12,10 +23,16 @@ guix-packages:
-f src/org/euandre/queue.scm \
guix-services-local:
- guix system -v3 -Lsrc/ -K build tests/local-system.scm
+ rm -f result-local
+ guix system -v3 -Lsrc/ -K -r result-local build tests/local/system.scm
+ cmp -s result-local/etc/postfix/master.cf tests/local/master.cf
+ cmp -s result-local/etc/postfix/main.cf tests/local/main.cf
-guix-services-internet:
- guix system -v3 -Lsrc/ -K build tests/internet-system.scm
+guix-services-internet: tests/internet/main.cf
+ rm -f result-internet
+ guix system -v3 -Lsrc/ -K -r result-internet build tests/internet/system.scm
+ cmp -s result-internet/etc/postfix/master.cf tests/internet/master.cf
+ cmp -s result-internet/etc/postfix/main.cf tests/internet/main.cf
guix-services: guix-services-local guix-services-internet
@@ -30,7 +47,7 @@ check:
clean:
rm -rf \
- result
+ result* .paku/ deb/ tests/internet/main.cf
public: