#!/bin/sh
# Copyright © 2019-2026 Collabora Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# (See debian/copyright)

set -e
set -u
set -x

prove -v tests/sdk/*.t
prove --exec=python3 -v tests/sdk/*.py
python3 ./abi/have-all-libraries.py

if [ "$(dpkg --print-architecture)" = amd64 ]; then
    dpkg-architecture -ai386 -c prove -v tests/cross-sdk/*.t
fi
