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