upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-19 13:10:54 +0530
committerYour Name <you@example.com>2026-05-19 13:10:54 +0530
commitef9ae982e42cd8c719a8ba5a0b87f25a5a5f91ba (patch)
treed8ee6e1073ba4006b605bd7166e9a08e2e4eb38b /tests/unit/Makefile
parent473b4d1108d8dc9264c44de587121e6886b08a5d (diff)
test: add 4 new unit test suites for mining modulesfeature/mining-payment
- test_stratum_proxy: job set/get, stats, init (21 tests) - test_session_payment_method: PAYMENT_METHOD enum, bytes/cashu methods (12 tests) - test_tollgate_client_mining: mining tag parsing, discovery struct (20 tests) - test_firewall_sandbox: client management, grant/revoke, max clients (16 tests) - Enhanced stubs: BaseType_t/pdPASS in task.h, lwip sockets/etharp/prot headers, dns_server.h, esp_wifi_ap_get_sta_list.h - All 15 test suites pass (344+ total assertions)
Diffstat (limited to 'tests/unit/Makefile')
-rw-r--r--tests/unit/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile
index 0a726f6..aa7f5ae 100644
--- a/tests/unit/Makefile
+++ b/tests/unit/Makefile
@@ -22,7 +22,7 @@ LDFLAGS := -lmbedcrypto -lcjson -lm
22 22
23SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o 23SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o
24 24
25TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client test_lnurl_pay test_lightning_payout test_mcp_handler test_nip04 test_cvm_server test_mining_payment 25TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client test_lnurl_pay test_lightning_payout test_mcp_handler test_nip04 test_cvm_server test_mining_payment test_stratum_proxy test_session_payment_method test_tollgate_client_mining test_firewall_sandbox
26 26
27.PHONY: all test clean $(TESTS) 27.PHONY: all test clean $(TESTS)
28 28
@@ -84,5 +84,17 @@ test_cvm_server: test_cvm_server.c
84test_mining_payment: test_mining_payment.c $(REPO_ROOT)/main/mining_payment.c 84test_mining_payment: test_mining_payment.c $(REPO_ROOT)/main/mining_payment.c
85 $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/mining_payment.c -o $@ $(LDFLAGS) 85 $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/mining_payment.c -o $@ $(LDFLAGS)
86 86
87test_stratum_proxy: test_stratum_proxy.c $(REPO_ROOT)/main/stratum_proxy.c $(REPO_ROOT)/main/mining_payment.c
88 $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/stratum_proxy.c $(REPO_ROOT)/main/mining_payment.c -o $@ $(LDFLAGS)
89
90test_session_payment_method: test_session_payment_method.c $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c
91 $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c -o $@ $(LDFLAGS)
92
93test_tollgate_client_mining: test_tollgate_client_mining.c
94 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
95
96test_firewall_sandbox: test_firewall_sandbox.c $(REPO_ROOT)/main/firewall.c
97 $(CC) $(CFLAGS) -include stubs/dns_server.h $< $(REPO_ROOT)/main/firewall.c -o $@ $(LDFLAGS)
98
87clean: 99clean:
88 rm -f $(TESTS) $(SECP256K1_OBJ) 100 rm -f $(TESTS) $(SECP256K1_OBJ)