Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAshutosh Mehra <asmehra1@in.ibm.com>2019-09-23 11:36:12 +0300
committerAndrei Vagin <avagin@gmail.com>2020-02-04 23:39:04 +0300
commit00ce121fd55e5947d477be4601169e8676a2bbbf (patch)
treec9893150fae943ec48002efe2b65526fbf91d45a /test
parent321f82662129f516573cedba10b4fbbfc12f9f5a (diff)
Add `criu` to PATH env variable in libcriu tests
PATH is pointing to incorrect location for `criu` executable causing libcriu tests to fail when running in travis. Also added statements to display log file contents on failure to help in debugging. Signed-off-by: Ashutosh Mehra <asmehra1@in.ibm.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/others/libcriu/run.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/others/libcriu/run.sh b/test/others/libcriu/run.sh
index 5f692db31..bd92f8544 100755
--- a/test/others/libcriu/run.sh
+++ b/test/others/libcriu/run.sh
@@ -13,7 +13,7 @@ mkdir -p wdir/i/
echo "== Run tests"
export LD_LIBRARY_PATH=.
-export PATH="`dirname ${BASH_SOURCE[0]}`/../../:$PATH"
+export PATH="`dirname ${BASH_SOURCE[0]}`/../../../criu:$PATH"
RESULT=0
@@ -21,6 +21,19 @@ function run_test {
echo "== Build $1"
if ! make $1; then
echo "FAIL build $1"
+ echo "** Output of $1/test.log"
+ cat wdir/i/$1/test.log
+ echo "---------------"
+ if [ -f wdir/i/$1/dump.log ]; then
+ echo "** Contents of dump.log"
+ cat wdir/i/$1/dump.log
+ echo "---------------"
+ fi
+ if [ -f wdir/i/$1/restore.log ]; then
+ echo "** Contents of restore.log"
+ cat wdir/i/$1/restore.log
+ echo "---------------"
+ fi
RESULT=1;
else
echo "== Test $1"