xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/sys/basic/test.sh (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifan#!/bin/bash -eu
2*d4726bddSHONG Yifan
3*d4726bddSHONG Yifanout="$(echo -n "Hello world" | "$1")"
4*d4726bddSHONG Yifan
5*d4726bddSHONG Yifan[[ "${out}" == "Compressed 11 to 50 bytes" ]] || (echo "Got ${out}" && exit 1)
6