mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 12:04:24 +00:00
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>
This commit is contained in:
parent
321f826621
commit
00ce121fd5
1 changed files with 14 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue