ares/.github/scripts/hoon/test-ship.sh

14 lines
413 B
Bash
Raw Normal View History

2023-03-04 11:24:08 +03:00
#!/bin/bash
set -xeuo pipefail
LENS_PORT=$(grep 'loopback' $URBIT_PIER/.http.ports | awk -F ' ' '{print $1}')
lensdojo() {
curl -s \
--data '{"source":{"dojo":"'"$1"'"},"sink":{"stdout":null}}' \
"http://localhost:$LENS_PORT"
}
# XX: redo when conn.c cli available; just runs tests whether they pass or fail
lensdojo "-test /=$DESK=/tests ~"