#!/bin/bash # Copyright (C) 2020 Ben Asselstine # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. #here is what we expect expected=`mktemp $builddir/fituvalu.XXXXXX` bindir=$builddir/../src cat << EOF >$expected 1225, 1489 289, 1225 289, 361 289, 625 289, 1489 289, 889 289, 961 361, 1225 361, 625 361, 1489 361, 889 361, 961 625, 1225 625, 1489 625, 889 625, 961 889, 1225 889, 1489 889, 961 961, 1225 961, 1489 25, 1225 25, 289 25, 361 25, 625 25, 1489 25, 889 25, 961 EOF #generating our results echo "1225, 289, 361, -239, 625, 1489, 889, 961, 25," | $bindir/mine-pairs #0014.log is simultaneously created as this script runs. diff -uNrd $expected $builddir/0014.log retval=$? #cleanup rm $expected exit $retval