#! /bin/sh # # $Header: /home/gene/library/website/docsrc/jmt/RCS/ref.sh,v 395.1 2008/04/20 17:25:47 gene Exp $ # # Copyright (c) 2004 Gene Michael Stover. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA TMP_C=/tmp/ref-$$.c.txt TMP_LISP=/tmp/ref-$$.lisp.txt cat < Reference Test

Output from the C program, which is the definitive version, goes to $TMP_C.

Output from the Lisp program, which is the program under test, goes to $TMP_LISP.

EOF

echo \$ ./ref-c \>$TMP_C
./ref-c >$TMP_C
echo \$ ./ref-lisp \>$TMP_LISP
./ref-lisp >$TMP_LISP
echo \$ diff $TMP_C $TMP_LISP
diff $TMP_C $TMP_LISP

cat <

End.

EOF rm $TMP_C $TMP_LISP # --- end of file ---