diff options
| author | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
| commit | a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.1/doc/problemexamples/problemtemplate/tests/c | |
| parent | 94caebadeb66ad7b453d4258a796979cafb758b0 (diff) | |
| download | boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip | |
restructuring of boca's git
Diffstat (limited to 'boca-1.5.1/doc/problemexamples/problemtemplate/tests/c')
| -rwxr-xr-x | boca-1.5.1/doc/problemexamples/problemtemplate/tests/c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/boca-1.5.1/doc/problemexamples/problemtemplate/tests/c b/boca-1.5.1/doc/problemexamples/problemtemplate/tests/c deleted file mode 100755 index de0a9c5..0000000 --- a/boca-1.5.1/doc/problemexamples/problemtemplate/tests/c +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# -# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge -# and the script files that are included in the problem package - -cat > test.c <<EOF -#include<stdio.h> -int main() { - char s[100]; - scanf("%s", s); - printf("%s\n",s); - return 0; -} -EOF -cat > test.in <<EOF -inputdata -EOF - -TL=2 -REP=10 -chmod 755 ../compile/c -../compile/c test.c test.exe $TL -chmod 755 ../run/c -../run/c test.exe test.in $TL $REP -if [ -r stdout0 ]; then - output=`cat stdout0` - if [ "$output" != "inputdata" ]; then - echo "ERROR" - exit 1 - fi -else - echo "ERROR" - exit 1 -fi -echo "TEST PASSED" -exit 0 |