1
0
mirror of https://github.com/containers/youki synced 2024-09-20 10:54:22 +02:00
youki/scripts/rust_integration_tests.sh

28 lines
507 B
Bash
Executable File

#! /bin/sh
if [ "$RUNTIME" = "" ]; then
RUNTIME="./youki"
fi
LOGFILE="./test.log"
./build.sh
cp ../integration_tests/rust-integration-tests/integration_test/bundle.tar.gz ./bundle.tar.gz
touch ./test.log
YOUKI_LOG_LEVEL="error" sudo ./integration_test run --runtime $RUNTIME --runtimetest ./runtimetest > $LOGFILE
# remove the files copied
./clean.sh
if [ 0 -ne $(grep "not ok" $LOGFILE | wc -l ) ]; then
cat $LOGFILE
exit 1
fi
echo "Validation successful for runtime $RUNTIME"
exit 0