#!/bin/sh
set -e

cd "$AUTOPKGTEST_TMP"

cat <<EOF > test1.c
#include <playfield/playfield.h>

/* Stub for downstream API injection. */
static bool init_hook(int width, int height)
{
	return true;
}

/* Stub for AOT code injection. */
static bool init_aot_code(struct rt_env *env)
{
	return true;
}

/* Define the entrypoint. */
PF_DEFINE_MAIN(init_hook, init_aot_code)
EOF

gcc test1.c -lstrato -lplayfield
echo "Autopkgtest: OK"
