#!/bin/sh

# ptest-cargo appends the test binary invocations to this script.
# The integration tests run hyperfine from the tests/ directory and
# compare its output against the insta snapshots installed there.
cd "$(dirname "$0")"
export INSTA_UPDATE=no

echo ""
echo "## starting to run rust tests ##"
if [ -z "$rc" ]; then rc=0; fi
if ! /usr/lib/hyperfine/ptest/integration_tests-09ff9ca68a3dadee 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/integration_tests-09ff9ca68a3dadee"
else
    echo "PASS: /usr/lib/hyperfine/ptest/integration_tests-09ff9ca68a3dadee"
fi
if ! /usr/lib/hyperfine/ptest/common-26b0dd857446ad6e 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/common-26b0dd857446ad6e"
else
    echo "PASS: /usr/lib/hyperfine/ptest/common-26b0dd857446ad6e"
fi
if ! /usr/lib/hyperfine/ptest/execution_order_tests-9a04d251c0fc333a 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/execution_order_tests-9a04d251c0fc333a"
else
    echo "PASS: /usr/lib/hyperfine/ptest/execution_order_tests-9a04d251c0fc333a"
fi
if ! /usr/lib/hyperfine/ptest/hyperfine-9f260e80009701a8 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/hyperfine-9f260e80009701a8"
else
    echo "PASS: /usr/lib/hyperfine/ptest/hyperfine-9f260e80009701a8"
fi
exit $rc
