1#!/bin/sh2set -e34cd "$(dirname "$0")"5. common.sh67if ! command -v qbe 1>/dev/null; then8 echo "Error: Couldn't find qbe in \$PATH'" 1>&29 exit 110fi1112for test in *; do13 [ -d "${test}" ] || continue1415 # Ensure that qbe(1) considers the input to be syntactically valid.16 qbe "${test}"/input.qbe 1>/dev/null 2>&1 || (17 echo "File '${test}/input.qbe' is not valid QBE IL"18 exit 119 )2021 qsym "${test}"/input.qbe "${ENTRY_FUNC}" \22 1>"${test}"/expected 2>&123done