#!/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/common-1807a7df92c35ce2 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/common-1807a7df92c35ce2"
else
    echo "PASS: /usr/lib/hyperfine/ptest/common-1807a7df92c35ce2"
fi
if ! /usr/lib/hyperfine/ptest/integration_tests-287cb7cccb90d4dd 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/integration_tests-287cb7cccb90d4dd"
else
    echo "PASS: /usr/lib/hyperfine/ptest/integration_tests-287cb7cccb90d4dd"
fi
if ! /usr/lib/hyperfine/ptest/execution_order_tests-387fbde1d2752a63 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/execution_order_tests-387fbde1d2752a63"
else
    echo "PASS: /usr/lib/hyperfine/ptest/execution_order_tests-387fbde1d2752a63"
fi
if ! /usr/lib/hyperfine/ptest/hyperfine-afb9adb96d0d461e 
then
    rc=1
    echo "FAIL: /usr/lib/hyperfine/ptest/hyperfine-afb9adb96d0d461e"
else
    echo "PASS: /usr/lib/hyperfine/ptest/hyperfine-afb9adb96d0d461e"
fi
exit $rc
