1
0
mirror of https://github.com/containers/youki synced 2024-11-23 09:21:57 +01:00
youki/crates/integration_test/run_tests.sh
2021-10-22 21:55:16 +02:00

19 lines
391 B
Bash
Executable File

#!/bin/bash
cd ..
./build.sh
cp ./youki ./youki_integration_test
cd ./youki_integration_test
./build.sh
RUNTIME=./youki
if [[ -n "$1" ]]; then
RUNTIME="$1"
fi
logfile="./test_log.log"
touch $logfile
sudo ./youki_integration_test -r $RUNTIME > $logfile
if [ 0 -ne $(grep "not ok" $logfile | wc -l ) ]; then
cat $logfile
exit 1
fi
echo "Validation successful for runtime $RUNTIME"