aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-16 09:43:31 -0300
committerEuAndreh <eu@euandre.org>2023-03-16 09:54:18 -0300
commitfbb6b500ea981b3fe7603288f0496cc3333245bf (patch)
tree7316b708ab760148b9c798f906a582a79032800d /tests
parentqueue.scm: Use mkdir-p/perms vs mkdir-p+chown+chmod (diff)
downloadpackage-repository-fbb6b500ea981b3fe7603288f0496cc3333245bf.tar.gz
package-repository-fbb6b500ea981b3fe7603288f0496cc3333245bf.tar.xz
queue.scm: Split postfix-service-type into {local,internet}-postfix-service-type
Also add those to `Makefile` as separate targets. BONUS: better naming of Guix targets in `Makefile`. Instead of `all-{packages,services}`, it is now `guix-{packages,services}`, as there are other packages being built that do not belong to Guix, and maybe more services in the future.
Diffstat (limited to 'tests')
-rw-r--r--tests/internet-system.scm (renamed from tests/test-system.scm)11
-rw-r--r--tests/local-system.scm25
2 files changed, 29 insertions, 7 deletions
diff --git a/tests/test-system.scm b/tests/internet-system.scm
index d49541c..1267911 100644
--- a/tests/test-system.scm
+++ b/tests/internet-system.scm
@@ -1,16 +1,13 @@
(use-modules
((org euandre queue) #:prefix queue:)
(gnu))
-(use-package-modules
- ssh)
+(use-package-modules)
(use-service-modules
certbot
- mail
- networking
- ssh)
+ mail)
(operating-system
- (host-name "a-test-host")
+ (host-name "a-internet-test-host")
(services
(append
(list
@@ -18,7 +15,7 @@
(service queue:dkimproxyout-service-type)
(service queue:cyrus-sasl-service-type)
(service queue:dovecot2-service-type)
- (service queue:postfix-service-type)
+ (service queue:internet-postfix-service-type)
(service certbot-service-type (certbot-configuration))
(service mail-aliases-service-type '()))
%base-services))
diff --git a/tests/local-system.scm b/tests/local-system.scm
new file mode 100644
index 0000000..abf09a8
--- /dev/null
+++ b/tests/local-system.scm
@@ -0,0 +1,25 @@
+(use-modules
+ ((org euandre queue) #:prefix queue:)
+ (gnu))
+(use-package-modules)
+(use-service-modules)
+
+(operating-system
+ (host-name "a-local-test-host")
+ (services
+ (append
+ (list
+ (service queue:local-postfix-service-type))
+ %base-services))
+ (bootloader
+ (bootloader-configuration
+ (bootloader grub-bootloader)))
+ (file-systems
+ (append
+ (list
+ (file-system
+ (mount-point "/")
+ (type "btrfs")
+ (device
+ (uuid "2c66de32-dde7-ea35-750a-a1ca47a58d45" 'btrfs))))
+ %base-file-systems)))