#! /bin/bash
#
# debian/tests/smoke-z8
# Part of Debian ‘inform6-compiler’ package.
#
# This is free software, and you are welcome to redistribute it under
# certain conditions; see the end of this file for copyright
# information, grant of license, and disclaimer of warranty.

# Smoke test for compiler with Z-machine 8 output.

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

DOCUMENT_NAME=hello
DOCUMENT_SUFFIX=.z8

INFORM_OPTS="-v8"
EXPECTED_TYPE_PATTERN="Infocom (Z-machine 8, .\+)"

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

compile_document

assert_file_type "${EXPECTED_TYPE_PATTERN}"


# Copyright © 2016–2025 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.

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