Egor Rachkovskii 35587c322b
Add in-repo API/e2e test suite (tests-e2e)
Migrate the liblogosdelivery API/wrapper pytest suite into tests-e2e/ and run it in CI (e2e-api-tests.yml) against the built library. Edge senders use the real lightpush path (relay=False).
2026-07-16 23:31:25 +01:00

23 lines
717 B
Bash
Executable File

#!/usr/bin/env bash
# Build liblogosdelivery from this repo and place it where the Python binding expects it.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
LIBDIR="$ROOT/tests-e2e/vendor/logos-delivery-python-bindings/lib"
cd "$ROOT"
make update
make V=1 liblogosdelivery
mkdir -p "$LIBDIR"
if [ -f build/liblogosdelivery.so ]; then
cp build/liblogosdelivery.so "$LIBDIR/liblogosdelivery.so"
elif [ -f build/liblogosdelivery.dylib ]; then
cp build/liblogosdelivery.dylib "$LIBDIR/liblogosdelivery.dylib"
ln -sf liblogosdelivery.dylib "$LIBDIR/liblogosdelivery.so"
else
echo "ERROR: built library not found in build/" >&2
exit 1
fi
echo "Placed liblogosdelivery in $LIBDIR"