mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-28 20:56:03 +00:00
test: Unify (most) SMTP client calls
To send mails, today some tests use msmtp and others our internal smtpc.py. This works, but msmtp slows down the tests significantly, and smtpc.py is also not particularly fast, and also has some limitations. This patch introduces a new SMTP client tool written in Go, and makes almost all the tests use it. Some tests still remain on msmtp, mainly for client-check compatibility. It's likely that this will be moved in later patches to a separate special-purpose test. With this patch, integration tests take ~20% less time than before.
This commit is contained in:
@@ -54,7 +54,7 @@ function launch_minidns() {
|
||||
|
||||
# T0: Successful.
|
||||
launch_minidns zones.t0
|
||||
run_msmtp userB@srv-B < content
|
||||
smtpc userB@srv-B < content
|
||||
wait_for_file .mail/userb@srv-b
|
||||
mail_diff content .mail/userb@srv-b
|
||||
|
||||
@@ -62,7 +62,7 @@ mail_diff content .mail/userb@srv-b
|
||||
# Check that userA got a DSN about it.
|
||||
rm .mail/*
|
||||
launch_minidns zones.t1
|
||||
run_msmtp userB@srv-B < content
|
||||
smtpc userB@srv-B < content
|
||||
wait_for_file .mail/usera@srv-a
|
||||
mail_diff expected_dsn .mail/usera@srv-a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user