1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/youki_integration_test/run_tests.sh
2021-10-09 12:47:28 +05:30

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"