#!/bin/bash

module_name="$1"
options="$2"

if output=$(set -eu; ./this-pypy ./test-$module_name $options 3>&2 2>&1)
then
	echo "$output" > "test-$module_name.uto"
else
	echo "$module_name failed:" 1>&2
	echo "$output" 1>&2
	exit 1
fi