From 9c3892b09a439e5bafa80b7c9ef910b5af0d8598 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 15:51:05 +0200 Subject: build: wire the SMTP client into the test suite --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 71abbbf..b55fca3 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ VENDOR_SRC = vendor/sqlite3.c vendor/yyjson.c vendor/sha256.c \ CORE_SRC = src/util.c src/log.c src/config.c src/db.c src/auth.c \ src/sessions.c src/audit.c src/protocol.c src/commands.c \ src/seed.c src/ledger.c src/reports.c src/sru.c src/sie.c \ - src/formula.c src/pdf.c src/invoice.c src/secret.c + src/formula.c src/pdf.c src/invoice.c src/secret.c src/smtp.c VENDOR_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(VENDOR_SRC)) CORE_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(CORE_SRC)) @@ -62,12 +62,18 @@ $(BUILD)/test_invoice: $(BUILD)/tests/invoice_check.o $(BUILD)/src/invoice.o \ $(BUILD)/vendor/sha256.o $(CC) $(CFLAGS) -o $@ $^ -lm -lssl -lcrypto +$(BUILD)/test_smtp: $(BUILD)/tests/smtp_check.o $(BUILD)/src/smtp.o \ + $(BUILD)/src/util.o $(BUILD)/src/log.o \ + $(BUILD)/vendor/sha256.o + $(CC) $(CFLAGS) -o $@ $^ -lm -lssl -lcrypto + test: check $(BUILD)/test_core $(BUILD)/test_tui $(BUILD)/test_pdf \ - $(BUILD)/test_invoice + $(BUILD)/test_invoice $(BUILD)/test_smtp $(BUILD)/test_core $(BUILD)/test_tui $(BUILD)/test_pdf $(BUILD)/test_invoice + $(BUILD)/test_smtp test-core: $(BUILD)/test_core $(BUILD)/test_core -- cgit v1.3