Some checks failed
Go / build-and-release (push) Has been cancelled
- Add 'serve' subcommand for ephemeral RAM-based relay at /dev/shm with open ACL mode for testing and benchmarking - Fix e-tag and p-tag decoding to use ValueHex()/ValueBinary() methods instead of Value() which returns raw bytes for binary-optimized storage - Document all command-line tools in readme.adoc (relay-tester, benchmark, stresstest, blossomtest, aggregator, convert, FIND, policytest, etc.) - Switch Docker images from Alpine to Debian for proper libsecp256k1 Schnorr signature and ECDH support required by Nostr - Upgrade Docker Go version from 1.21 to 1.25 - Add ramdisk mode (--ramdisk) to benchmark script for eliminating disk I/O bottlenecks in performance measurements - Add docker-compose.ramdisk.yml for tmpfs-based benchmark volumes - Add test coverage for privileged policy with binary-encoded p-tags - Fix blossom test to expect 200 OK for anonymous uploads when auth is not required (RequireAuth=false with ACL mode 'none') - Update follows ACL to handle both binary and hex p-tag formats - Grant owner access to all users in serve mode via None ACL - Add benchmark reports from multi-relay comparison run - Update CLAUDE.md with binary tag handling documentation - Bump version to v0.30.2
37 lines
816 B
Bash
Executable File
37 lines
816 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pure Go build with purego - no CGO needed
|
|
# libsecp256k1 is loaded dynamically at runtime if available
|
|
export CGO_ENABLED=0
|
|
|
|
# Verify libsecp256k1.so exists in repo (should be at repo root)
|
|
if [ ! -f "libsecp256k1.so" ]; then
|
|
echo "Warning: libsecp256k1.so not found in repo - tests may use fallback crypto"
|
|
else
|
|
chmod +x libsecp256k1.so 2>/dev/null || true
|
|
fi
|
|
|
|
# Set LD_LIBRARY_PATH to include current directory
|
|
if [ -f "libsecp256k1.so" ]; then
|
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(pwd)"
|
|
fi
|
|
|
|
go mod tidy
|
|
go test ./...
|
|
cd pkg/crypto
|
|
go mod tidy
|
|
go test ./...
|
|
cd ../database
|
|
go mod tidy
|
|
go test ./...
|
|
cd ../encoders
|
|
go mod tidy
|
|
go test ./...
|
|
cd ../protocol
|
|
go mod tidy
|
|
go test ./...
|
|
cd ../utils
|
|
go mod tidy
|
|
go test ./...
|
|
cd ../acl
|
|
go mod tidy
|
|
go test ./... |