criu/test/others/env.sh
Adrian Reber b78c4e071a test: fix crit test and extend it
This fixes the others/crit test to work again and extends it to make
sure all possible input and output options are correctly handled by
crit.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03 10:31:00 -07:00

17 lines
460 B
Bash
Executable file

#!/bin/sh
CRIU=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../criu/criu)
criu=$CRIU
if [ $(which python3) ]; then
PYTHON=python3
elif [ $(which python2) ]; then
PYTHON=python2
else
echo "FAIL: Neither python3 nor python2"
exit 1
fi
#export PYTHON
CRIT=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../crit/crit-"${PYTHON}")
crit=$CRIT
CRIU_COREDUMP=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../criu-coredump/criu-coredump)
criu_coredump=$CRIU_COREDUMP