mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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>
17 lines
460 B
Bash
Executable file
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
|