mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-20 03:30:22 +00:00
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).
23 lines
717 B
Bash
Executable File
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"
|