diff options
author | root <root@localhost> | 2012-12-30 16:05:36 +0330 |
---|---|---|
committer | Mahrud Sayrafi <mahrud@eve> | 2012-12-30 05:33:01 -0800 |
commit | b300254ee1f308c440d8e8d8129fb863b6ec9599 (patch) | |
tree | 13b4c0871e5ed92b517c002ab815da7f0fe5fbcc /utils/bs-tester.sh | |
parent | 9cb5ecf6956115140521d74cea8b4191634842fd (diff) | |
download | hellijudge-legacy.git-0.9.tar.gz hellijudge-legacy.git-0.9.tar.xz hellijudge-legacy.git-0.9.zip |
Making the legacy more usefulv0.9
Added a brief installation guide in README along with etc config file samples.
Added a couple of useful start and kill scripts in utils folder.
Added two sample problems (one normal one interactive) along with
testers in utils folder.
Diffstat (limited to 'utils/bs-tester.sh')
-rwxr-xr-x | utils/bs-tester.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/bs-tester.sh b/utils/bs-tester.sh new file mode 100755 index 0000000..1c21841 --- /dev/null +++ b/utils/bs-tester.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# tester.sh - tests whether or not the judge is working properly without web +# Copyright (C) 2012 Hamed Saleh and Mahrud Sayrafi + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 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 General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +echo -1 \ + admin \ + bs \ + cpp \ + $JUDGE_PREFIX/problems/bs/bs.cpp \ + 0 | #FIXME: what was this?! guess smt like whether or not break on wrong + nc -vv 127.0.0.1 31415 + +sleep 2 # Ladies and gentlemen, please wait for the jury to make its decision! + +tail -n3 $JUDGE_PREFIX/log/error.log # in case there are some errors, they are here! +tail -n1 $JUDGE_PREFIX/log/grading.log # and there you go! the final decision! |