racket/collects/web-server/tests/run
Jay McCarthy 27e9d4640f V4 progress
svn: r7799
2007-11-21 05:02:18 +00:00

17 lines
316 B
Bash
Executable File

#!/bin/bash
FILE=$1
T=$2
if [ "x$2" == "x" ] ; then
T=$(basename $FILE .ss)s
fi
MODE=graphical
PROG=mzscheme
if [ "x${MODE}" == "xgraphical" ] ; then
PROG=mred
fi
${PROG} -e "(begin (require \"${FILE}\") (require (planet \"${MODE}-ui.ss\" (\"schematics\" \"schemeunit.plt\" 2))) (test/${MODE}-ui ${T}))"