#!/bin/sh
set -e

cd "$AUTOPKGTEST_TMP"

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

static char window_title[] = "Hello";

static bool on_start(void)
{
	return true;
}

static bool on_update(void)
{
	return true;
}

static void on_render(void)
{
}

bool hal_bootstrap(char **title, int *width, int *height, struct hal_callback *cb)
{

	*title = window_title;
	*width = 640;
	*height = 480;

	cb->on_start = on_start;
	cb->on_update = on_update;
	cb->on_render = on_render;

	return true;
}

HAL_DEFINE_MAIN()
EOF

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