#!/bin/sh # Public test: one input. out=$(aji run --grant input=io.read --grant out=io.write --stdin 'hello' main.aji) || { echo "FAIL: aji run failed"; echo "$out"; exit 1; } case "$out" in *'"stdout":"hello"'*) echo "PASS";; *) echo "FAIL: unexpected run record: $out"; exit 1;; esac