diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 15:51:05 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 15:51:05 +0200 |
| commit | 9c3892b09a439e5bafa80b7c9ef910b5af0d8598 (patch) | |
| tree | 7ba487b98d80389f509845c8649ec65b3dcc9496 | |
| parent | 5e624647d2f2750cf1fe7f97d8c89718d187879d (diff) | |
| download | bokf-9c3892b09a439e5bafa80b7c9ef910b5af0d8598.tar.gz bokf-9c3892b09a439e5bafa80b7c9ef910b5af0d8598.zip | |
build: wire the SMTP client into the test suite
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |
