mirror of
https://github.com/foxcpp/maddy.git
synced 2026-02-07 16:24:17 +02:00
1. go-smtp is replaced by a fork that reverts StartTLS removal. 2. SASL LOGIN is no longer supported by upstream go-sasl, readded disabled by default. 3. Updated endpoint code to match new go-smtp authentication interfaces. 4. certmagic repo had some renames 5. Minimum Go version increased to 1.23 to match dependencies.
maddy integration testing
Tests structure
The test library creates a temporary state and runtime directory, starts the server with the specified configuration file and lets you interact with it using a couple of convenient wrappers.
Running
To run tests, use go test -tags integration in this directory. Make sure to
have a maddy executable in the current working directory.
Use -integration.executable if the executable is named different or is placed
somewhere else.
Use -integration.coverprofile to pass -test.coverprofile your_value.RANDOM to test executable. See ./build_cover.sh to build a
server executable instrumented with coverage counters.