From: Martin Mares Date: Fri, 6 Apr 2001 11:13:00 +0000 (+0000) Subject: Multiple sample inputs allowed. X-Git-Tag: python-dummy-working~524 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=bda1c385638cb870492497a118557d7240975e0a;p=moe.git Multiple sample inputs allowed. --- diff --git a/TODO b/TODO index b748cf7..4fec160 100644 --- a/TODO +++ b/TODO @@ -1,2 +1,3 @@ -static ? multiple check inputs? +mo-install: don't copy private test data to public diff --git a/bin/profile b/bin/profile index e55842a..27144b5 100644 --- a/bin/profile +++ b/bin/profile @@ -5,8 +5,7 @@ PATH="$PATH:~/bin" #echo -n "User to use for testing: " #read TEST_USER -# FIXME -#echo "Setting TEST_USER=mo-test1" -#TEST_USER=mo-test1 +echo "Setting TEST_USER=mo-test1" +TEST_USER=mo-test1 export TEST_USER diff --git a/public/check b/public/check index 37fce30..fee56b6 100644 --- a/public/check +++ b/public/check @@ -12,9 +12,10 @@ public-setup . $PDIR/config locate-source compile -TEST=$SAMPLE_TEST PTSFILE=$TDIR/points -pstart "Checking on sample input: " -test-run -syntax-check -pend "OK" +for TEST in $SAMPLE_TESTS ; do + pstart "Checking on sample input $TEST: " + test-run + syntax-check + pend "OK" +done diff --git a/public/submit b/public/submit index 15dd217..837d43c 100644 --- a/public/submit +++ b/public/submit @@ -12,12 +12,13 @@ public-setup . $PDIR/config locate-source compile -TEST=$SAMPLE_TEST PTSFILE=$TDIR/points -pstart "Checking on sample input: " -test-run -syntax-check -pend "OK" +for TEST in $SAMPLE_TESTS ; do + pstart "Checking on sample input $TEST: " + test-run + syntax-check + pend "OK" +done pstart "Submiting: " mkdir -p ~/.submit/$PROBLEM rm -rf ~/.submit/$PROBLEM/*