Pre-mbedTLS cleanup checkpoint - OpenSSL migration complete, all tests passing
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# NOSTR Test Suite Makefile
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c99 -g -I.. -I../secp256k1/include -I../mbedtls-install/include
|
||||
LDFLAGS = -L.. -L../secp256k1/.libs -L../mbedtls-install/lib -lnostr_core -l:libsecp256k1.a -l:libmbedtls.a -l:libmbedx509.a -l:libmbedcrypto.a -lm -static
|
||||
CFLAGS = -Wall -Wextra -std=c99 -g -I.. -I../secp256k1/include -I../openssl-install/include
|
||||
LDFLAGS = -L.. -lnostr_core -lm -static
|
||||
|
||||
# ARM64 cross-compilation settings
|
||||
ARM64_CC = aarch64-linux-gnu-gcc
|
||||
ARM64_CFLAGS = -Wall -Wextra -std=c99 -g -I..
|
||||
ARM64_LDFLAGS = -L.. -lnostr_core_arm64 -lm -static
|
||||
ARM64_LDFLAGS = -L.. -lnostr_core_arm64 -lssl -lcrypto -lm -static
|
||||
|
||||
# Test executables
|
||||
CRYPTO_TEST_EXEC = nostr_crypto_test
|
||||
@@ -16,6 +16,8 @@ RELAY_POOL_TEST_EXEC = relay_pool_test
|
||||
EVENT_GEN_TEST_EXEC = test_event_generation
|
||||
POW_LOOP_TEST_EXEC = test_pow_loop
|
||||
NIP04_TEST_EXEC = nip04_test
|
||||
HTTP_TEST_EXEC = http_test
|
||||
WSS_TEST_EXEC = wss_test
|
||||
STATIC_LINKING_TEST_EXEC = static_linking_only_test
|
||||
ARM64_CRYPTO_TEST_EXEC = nostr_crypto_test_arm64
|
||||
ARM64_CORE_TEST_EXEC = nostr_core_test_arm64
|
||||
@@ -55,6 +57,16 @@ $(NIP04_TEST_EXEC): nip04_test.c
|
||||
@echo "Building NIP-04 encryption test suite (x86_64)..."
|
||||
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
|
||||
|
||||
# Build HTTP test executable (x86_64)
|
||||
$(HTTP_TEST_EXEC): http_test.c
|
||||
@echo "Building HTTP/curl compatibility test (x86_64)..."
|
||||
$(CC) $(CFLAGS) $< -o $@ -lcurl
|
||||
|
||||
# Build WebSocket SSL test executable (x86_64)
|
||||
$(WSS_TEST_EXEC): wss_test.c
|
||||
@echo "Building WebSocket SSL/OpenSSL compatibility test (x86_64)..."
|
||||
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
|
||||
|
||||
# Build static linking test executable (x86_64)
|
||||
$(STATIC_LINKING_TEST_EXEC): static_linking_only_test.c
|
||||
@echo "Building static linking verification test (x86_64)..."
|
||||
@@ -149,13 +161,23 @@ test-nip04: $(NIP04_TEST_EXEC)
|
||||
@echo "Running NIP-04 encryption tests (x86_64)..."
|
||||
./$(NIP04_TEST_EXEC)
|
||||
|
||||
# Run HTTP tests (x86_64)
|
||||
test-http: $(HTTP_TEST_EXEC)
|
||||
@echo "Running HTTP/curl compatibility tests (x86_64)..."
|
||||
./$(HTTP_TEST_EXEC)
|
||||
|
||||
# Run WebSocket SSL tests (x86_64)
|
||||
test-wss: $(WSS_TEST_EXEC)
|
||||
@echo "Running WebSocket SSL/OpenSSL compatibility tests (x86_64)..."
|
||||
./$(WSS_TEST_EXEC)
|
||||
|
||||
# Run static linking verification test (x86_64)
|
||||
test-static-linking: $(STATIC_LINKING_TEST_EXEC)
|
||||
@echo "Running static linking verification test (x86_64)..."
|
||||
./$(STATIC_LINKING_TEST_EXEC)
|
||||
|
||||
# Run all test suites (x86_64)
|
||||
test: test-crypto test-core test-relay-pool test-nip04 test-static-linking
|
||||
test: test-crypto test-core test-relay-pool test-nip04 test-http test-wss test-static-linking
|
||||
|
||||
# Run crypto tests ARM64 (requires qemu-user-static or ARM64 system)
|
||||
test-crypto-arm64: $(ARM64_CRYPTO_TEST_EXEC)
|
||||
@@ -202,7 +224,7 @@ test-all: test test-arm64
|
||||
# Clean
|
||||
clean:
|
||||
@echo "Cleaning test artifacts..."
|
||||
rm -f $(CRYPTO_TEST_EXEC) $(CORE_TEST_EXEC) $(RELAY_POOL_TEST_EXEC) $(EVENT_GEN_TEST_EXEC) $(POW_LOOP_TEST_EXEC) $(NIP04_TEST_EXEC) $(STATIC_LINKING_TEST_EXEC) $(ARM64_CRYPTO_TEST_EXEC) $(ARM64_CORE_TEST_EXEC) $(ARM64_RELAY_POOL_TEST_EXEC) $(ARM64_NIP04_TEST_EXEC)
|
||||
rm -f $(CRYPTO_TEST_EXEC) $(CORE_TEST_EXEC) $(RELAY_POOL_TEST_EXEC) $(EVENT_GEN_TEST_EXEC) $(POW_LOOP_TEST_EXEC) $(NIP04_TEST_EXEC) $(HTTP_TEST_EXEC) $(WSS_TEST_EXEC) $(STATIC_LINKING_TEST_EXEC) $(ARM64_CRYPTO_TEST_EXEC) $(ARM64_CORE_TEST_EXEC) $(ARM64_RELAY_POOL_TEST_EXEC) $(ARM64_NIP04_TEST_EXEC)
|
||||
|
||||
# Help
|
||||
help:
|
||||
|
||||
Reference in New Issue
Block a user