mirror of
https://github.com/urbit/ares.git
synced 2024-11-29 22:56:28 +03:00
14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/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 ~"
|