test-coldmud.sh

coldmud-0.10-3/test/test-coldmud.sh · 313 B

From the archive coldmud-0.10-3.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh

cp source textdump
$1 . 2> output
perl get-output.pl source > ideal-output
perl prune-output.pl output > actual-output
if cmp -s ideal-output actual-output; then
	echo "Test passes."
else
	echo "Test fails:"
	diff ideal-output actual-output
fi
rm -rf textdump binary output ideal-output actual-output

Site Stats

Snippets: 1791
Codebases: 571