Initial release MARS_NWE-PCAP 0.4 - Native Administration, Print and Login Edition

This commit is contained in:
2026-11-26 20:22:04 +00:00
commit 7ba7f59b08
51 changed files with 1966 additions and 0 deletions

10
run-ipc-test.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
[[ $EUID == 0 ]] || { echo 'Use sudo ./run-ipc-test.sh (no server running)' >&2; exit 1; }
[[ ! -S /run/mars-pcap/transport.sock ]] || { echo 'A broker socket exists; stop it before running the test' >&2; exit 1; }
[[ -x build/test-ipc && -x build/mars-pcapd ]] || { echo 'Run make check first as regular user' >&2; exit 1; }
./build/mars-pcapd --offline-test & pid=$!
trap 'kill "$pid" 2>/dev/null || true; wait "$pid" 2>/dev/null || true' EXIT
for i in $(seq 1 50); do [[ -S /run/mars-pcap/transport.sock ]] && break; sleep .1; done
./build/test-ipc