#!/bin/sh
# autopkgtest check: Build and run a program against libqat-dev, to verify that the
# headers are installed correctly
# (C) 2024 Canonical Ltd.
# Author: Hector Cao <hector.cao@canonical.com>

set -e

export srcdir=`pwd`/tests
export builddir=`pwd`/nonexist-builddir

# check if library is available
if [ ! -f /usr/lib/x86_64-linux-gnu/libqat.so ]; then
		echo "QAT library missing"
		exit 1
fi

echo "tests: OK"
