#!/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-4a3259c489e93407 
then
    rc=1
    echo "FAIL: /usr/lib/rpm-sequoia/ptest/rpm_sequoia-4a3259c489e93407"
else
    echo "PASS: /usr/lib/rpm-sequoia/ptest/rpm_sequoia-4a3259c489e93407"
fi
if ! /usr/lib/rpm-sequoia/ptest/symbols-340aedd8173750db 
then
    rc=1
    echo "FAIL: /usr/lib/rpm-sequoia/ptest/symbols-340aedd8173750db"
else
    echo "PASS: /usr/lib/rpm-sequoia/ptest/symbols-340aedd8173750db"
fi
exit $rc
