diff options
| author | Your Name <you@example.com> | 2026-05-18 19:14:45 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:14:45 +0530 |
| commit | 78d0c3795e9a90a9f99178e38346a53d9b2ebe57 (patch) | |
| tree | d9583018e6318d389452bcd3a2b505d1716051d5 /tests/unit/Makefile | |
| parent | 859f9b14e033de9a0690ccbbb975b4b472b688ce (diff) | |
Add test_mint_health: 14 host unit tests for mint health module
Tests: init, get_all, initial state, is_reachable, mark_unreachable,
overflow handling, empty init, callback registration, reinit, start/stop.
Adds freertos/semphr.h stub and pdTRUE to FreeRTOS.h stub.
Diffstat (limited to 'tests/unit/Makefile')
| -rw-r--r-- | tests/unit/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile index f47ef23..fc84c4e 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile | |||
| @@ -22,7 +22,7 @@ LDFLAGS := -lmbedcrypto -lcjson -lm | |||
| 22 | 22 | ||
| 23 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o | 23 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o |
| 24 | 24 | ||
| 25 | TESTS := 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 | 25 | TESTS := 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_mint_health |
| 26 | 26 | ||
| 27 | .PHONY: all test clean $(TESTS) | 27 | .PHONY: all test clean $(TESTS) |
| 28 | 28 | ||
| @@ -81,5 +81,8 @@ test_nip04: test_nip04.c $(REPO_ROOT)/main/nip04.c $(SECP256K1_OBJ) | |||
| 81 | test_cvm_server: test_cvm_server.c | 81 | test_cvm_server: test_cvm_server.c |
| 82 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 82 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| 83 | 83 | ||
| 84 | test_mint_health: test_mint_health.c $(REPO_ROOT)/main/mint_health.c | ||
| 85 | $(CC) -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -std=gnu17 -g -O0 -DTEST_HOST -include stubs/esp_err.h -I $(REPO_ROOT)/main -I stubs -I $(SECP256K1_INC) -I $(SECP256K1_CFG) -I /usr/include/cjson $< $(REPO_ROOT)/main/mint_health.c -o $@ $(LDFLAGS) | ||
| 86 | |||
| 84 | clean: | 87 | clean: |
| 85 | rm -f $(TESTS) $(SECP256K1_OBJ) | 88 | rm -f $(TESTS) $(SECP256K1_OBJ) |