Judger/tests/runtest.sh
2018-06-09 15:00:13 +08:00

17 lines
280 B
Bash
Executable File

#! /bin/bash
set -ex
dir=$PWD
python -V
gcc -v
g++ -v
for py in python2 python3; do
cd $dir
rm -rf build && mkdir build && cd build && cmake ..
make
make install
cd ../bindings/Python && rm -rf build
$py setup.py install
cd ../../tests/Python_and_core && $py test.py
done