#! /bin/bash
#
# debian/tests/smoke-ulx
# Part of Debian ‘inform6-compiler’ package.
#
# Copyright © 2016 Ben Finney <bignose@debian.org>
# This is free software; you may copy, modify, and/or distribute this
# work under the terms of the GNU General Public License as published
# by the Free Software Foundation; version 3 of that License or later.
# No warranty expressed or implied.
#
# Smoke test for compiler with Glulx game data output.

set -o errexit
set -o errtrace
set -o nounset

DOCUMENT_NAME=hello
DOCUMENT_SUFFIX=.ulx

INFORM_OPTS="-G"
EXPECTED_TYPE_PATTERN="Glulx game data (Version 2\..\+) Compiled by Inform"

program_dir="$(dirname "$(realpath --strip "$0")")"
source "${program_dir}"/smoke-compile.bash

compile_document

assert_file_type "${EXPECTED_TYPE_PATTERN}"


# Local variables:
# coding: utf-8
# mode: shell-script
# End:
# vim: fileencoding=utf-8 filetype=sh :
