Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Component for testing tasks.
Python Java Clojure C++ Prolog Shell Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gen_playgrounds
languages
scripts
tasks
tests
tools
.gitignore
HOWTO
README.md
compilable_task.py
config.py
executor.py
task.py
test.py
worker.py

README.md

Taste-o-Code Tester

Link to project: Taste-o-Code
Project's description and goals: about page

This repo is a part of Taste-o-Code that tests tasks.

It requires python2.7.

Add environment variable to profile (e.g. .bashrc):

export TOC_TESTER_PATH=%path to this repo%

Installing redis:

wget http://redis.googlecode.com/files/redis-2.4.6.tar.gz
tar xzf redis-2.4.6.tar.gz
cd redis-2.4.6
make
sudo cp src/redis-server src/redis-cli /usr/bin
sudo mkdir /etc/redis
sudo cp redis.conf /etc/redis

Setup password in redis.conf

Running redis on boot

sudo cp TOC_TESTER_PATH/scripts/configs/redis.conf /etc/init

To run redis you can reboot or run 'sudo start redis'

Installing pyres:

sudo apt-get install python-setuptools
sudo apt-get install python-dev
git clone git://github.com/nbeloglazov/pyres.git
cd pyres
python setup.py build
sudo python setup.py install

Installing python specific packages

sudo apt-get install python-yaml

Installing additional dependences for tester

sudo apt-get install timeout

Installing prolog

wget http://www.gprolog.org/gprolog-1.4.0.tar.gz
tar xvf gprolog-1.4.0.tar.gz
cd gprolog-1.4.0/src
./configure
make
sudo make install

Installing clojure (run gen_playgrounds.py script before to create playground)

wget 'http://search.maven.org/remotecontent?filepath=org/clojure/clojure/1.5.1/clojure-1.5.1.jar'  -O %PATH_TO_PlAYGROUND%/files/clojure-1.5.1.jar

Installing Unlambda

wget ftp://quatramaran.ens.fr/pub/madore/unlambda/unlambda-2.0.0.tar.gz
tar xvf unlambda-2.0.0.tar.gz
cd unlambda-2.0.0/c-refcnt/
gcc unlambda.c -o unlambda
cp %PATH_TO_PLAYGROUND%/sandbox-files/unlambda
Something went wrong with that request. Please try again.