2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-24 10:58:36 +00:00
criu/scripts/install-criu-image-streamer.sh
Nicolas Viennot 27ab533cbe tests: run tests with criu-image-streamer with --stream
One can pass --stream to zdtm.py for testing criu with image streaming.
criu-image-streamer should be installed in ../criu-image-streamer
relative to the criu project directory. But any path will do providing
that criu-image-streamer can be found in the PATH env.

Added a few tests to run on travis-ci to make sure streaming works.
We run test that are likely to fail. However, it would be good to once
in a while run all tests with `--stream -a`.

Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
2020-10-20 00:18:24 -07:00

15 lines
480 B
Bash
Executable File

#!/bin/bash
set -eux
# Install Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Clone criu-image-streamer in a sibling directory of the criu project directory
cd $(dirname "$0")/../../
# TODO change dev branch to master once PR is merged
git clone --depth=1 https://github.com/checkpoint-restore/criu-image-streamer.git -b dev
# Compile
cd criu-image-streamer
make BUILD=debug # debug build compiles faster than release mode (2x faster)