OverviewFilesCommitsIssuesDocsReleasesPeers

hyperswarm-peer / integration / run_layer1.sh

24 lines · bash ref:
#!/usr/bin/env bash
# Layer 1: GDExtension Load + P2P API Smoke
# Tests that the .so loads, all methods/signals exist, keypairs generate correctly.
set -euo pipefail
cd "$(dirname "$0")"

echo "=== Layer 1: GDExtension Load + P2P API Smoke ==="

OUTPUT=$(timeout -k 10 60 godot4 --headless --path project --script ../layer1_smoke.gd 2>&1)
echo "$OUTPUT"

if echo "$OUTPUT" | grep -q "FAILED:"; then
    echo "Layer 1: FAILED"
    exit 1
fi

if echo "$OUTPUT" | grep -q "Layer 1:.*passed"; then
    echo "Layer 1: OK"
    exit 0
fi

echo "Layer 1: UNKNOWN (no results found)"
exit 1