#!/bin/sh -e
# SPDX-FileCopyrightText: 2021 John Scott <jscott@posteo.net>
# SPDX-License-Identifier: GPL-3.0-or-later
sh-elf-gcc -o "$AUTOPKGTEST_TMP"/fork debian/tests/fork.c
cd "$AUTOPKGTEST_TMP"
output=$(sh-elf-run ./fork)
if [ "$output" != "aaaaaaaaaaaaaaaa" ]
then
	echo Expected "aaaaaaaaaaaaaaaa", got "$output" >&2
	exit 1
fi
