#!/bin/sh

# This script doesn't seem to do much, but the recipe uses
# the ptest-cargo bbclass, which appends its content to
# the run-ptest script, if it can find an existing one.

# The test that ptest-cargo class generates requires the
# TEST_DONT_BUILD_LIB environment variable to be set before
# it would be executed, and this is what this script does.
export TEST_DONT_BUILD_LIB=1

echo ""
echo "## starting to run rust tests ##"
if [ -z "$rc" ]; then rc=0; fi
if ! /usr/lib/rpm-sequoia/ptest/rpm_sequoia-ee7055f92cf98de8 
then
    rc=1
    echo "FAIL: /usr/lib/rpm-sequoia/ptest/rpm_sequoia-ee7055f92cf98de8"
else
    echo "PASS: /usr/lib/rpm-sequoia/ptest/rpm_sequoia-ee7055f92cf98de8"
fi
if ! /usr/lib/rpm-sequoia/ptest/symbols-6d437d4b3e39ceb4 
then
    rc=1
    echo "FAIL: /usr/lib/rpm-sequoia/ptest/symbols-6d437d4b3e39ceb4"
else
    echo "PASS: /usr/lib/rpm-sequoia/ptest/symbols-6d437d4b3e39ceb4"
fi
exit $rc
