diff options
Diffstat (limited to 'tests/unit/Makefile')
| -rw-r--r-- | tests/unit/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile index 6d13e4d..7bd3f1e 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 test_display test_negentropy_adapter | 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_display test_negentropy_adapter test_beacon_price test_market |
| 26 | 26 | ||
| 27 | .PHONY: all test clean $(TESTS) | 27 | .PHONY: all test clean $(TESTS) |
| 28 | 28 | ||
| @@ -63,8 +63,8 @@ test_cashu: test_cashu.c $(REPO_ROOT)/main/cashu.c | |||
| 63 | test_session: test_session.c $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c | 63 | test_session: test_session.c $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c |
| 64 | $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c -o $@ $(LDFLAGS) | 64 | $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/session.c $(REPO_ROOT)/main/cashu.c -o $@ $(LDFLAGS) |
| 65 | 65 | ||
| 66 | test_tollgate_client: test_tollgate_client.c | 66 | test_tollgate_client: test_tollgate_client.c $(REPO_ROOT)/main/market.c $(REPO_ROOT)/main/beacon_price.c |
| 67 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 67 | $(CC) $(CFLAGS) -I $(REPO_ROOT)/main $< $(REPO_ROOT)/main/market.c $(REPO_ROOT)/main/beacon_price.c -o $@ $(LDFLAGS) |
| 68 | 68 | ||
| 69 | test_lnurl_pay: test_lnurl_pay.c | 69 | test_lnurl_pay: test_lnurl_pay.c |
| 70 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 70 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| @@ -87,5 +87,11 @@ test_display: test_display.c | |||
| 87 | test_negentropy_adapter: test_negentropy_adapter.c | 87 | test_negentropy_adapter: test_negentropy_adapter.c |
| 88 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 88 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| 89 | 89 | ||
| 90 | test_beacon_price: test_beacon_price.c $(REPO_ROOT)/main/beacon_price.c | ||
| 91 | $(CC) $(CFLAGS) -I $(REPO_ROOT)/main $< $(REPO_ROOT)/main/beacon_price.c -o $@ $(LDFLAGS) | ||
| 92 | |||
| 93 | test_market: test_market.c $(REPO_ROOT)/main/market.c $(REPO_ROOT)/main/beacon_price.c | ||
| 94 | $(CC) $(CFLAGS) -I $(REPO_ROOT)/main $< $(REPO_ROOT)/main/market.c $(REPO_ROOT)/main/beacon_price.c -o $@ $(LDFLAGS) | ||
| 95 | |||
| 90 | clean: | 96 | clean: |
| 91 | rm -f $(TESTS) $(SECP256K1_OBJ) | 97 | rm -f $(TESTS) $(SECP256K1_OBJ) |