diff --git a/test/app-emu/java/HelloWorld/run.sh b/test/app-emu/java/HelloWorld/run.sh index 7f94d3a25..0ed6afd14 100644 --- a/test/app-emu/java/HelloWorld/run.sh +++ b/test/app-emu/java/HelloWorld/run.sh @@ -1,8 +1,7 @@ #!/bin/bash source ../../../functions.sh || exit 1 - -criu="../../../../criu" +source ../../../env.sh || exit 1 cleanup_class() { rm -f ./*.class diff --git a/test/app-emu/job/job.exp b/test/app-emu/job/job.exp index 1b9b7fba9..1409103e3 100755 --- a/test/app-emu/job/job.exp +++ b/test/app-emu/job/job.exp @@ -1,5 +1,7 @@ #!/usr/bin/expect +source ../../env.sh || exit 1 + exec rm -rf ./dump exec mkdir ./dump @@ -21,7 +23,7 @@ switch $current { puts "FAIL: Timed out on ready" exit -1 } - system ../../../criu dump -v4 -D ./dump -o dump.log -j -t $pid + system $criu dump -v4 -D ./dump -o dump.log -j -t $pid system echo "$pid" > ./dump/pid.pid exit 0 } @@ -37,7 +39,7 @@ switch $current { exit -1 } - spawn ../../../criu restore -v4 -D ./dump -o restore.log -j + spawn $criu restore -v4 -D ./dump -o restore.log -j # # spawn doesn't wait for restore to complete, so # add some sleep here. Still better would be to diff --git a/test/app-emu/lxc/run.sh b/test/app-emu/lxc/run.sh index 3b86f0026..3664f5f8d 100755 --- a/test/app-emu/lxc/run.sh +++ b/test/app-emu/lxc/run.sh @@ -1,11 +1,11 @@ #!/bin/bash +source ../../env.sh || exit 1 + [ -z "$CR_IP_TOOL" ] && CR_IP_TOOL=ip cd `dirname $0` -criu="../../../criu" - name=$1 [ -z "$name" ] && { cat <