#!/bin/sh # Public test: one input. out=$(aji run --grant in=io.read --grant out=io.write --stdin 'hello' main.air) || { 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