mirror of
https://github.com/containers/youki
synced 2024-09-24 13:01:37 +02:00
6a98b59026
Signed-off-by: utam0k <k0ma@utam0k.jp>
29 lines
614 B
Bash
Executable File
29 lines
614 B
Bash
Executable File
#! /bin/sh -eu
|
|
|
|
ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
if [ "$1" = "" ]; then
|
|
echo "please specify runtime"
|
|
exit 1
|
|
fi
|
|
ROOT=${2-$(git rev-parse --show-toplevel)}
|
|
|
|
LOGFILE="${ROOT}/test.log"
|
|
|
|
if [ ! -f ${ROOT}/bundle.tar.gz ]; then
|
|
cp ${ROOT}/tests/rust-integration-tests/integration_test/bundle.tar.gz ${ROOT}/bundle.tar.gz
|
|
fi
|
|
touch ${LOGFILE}
|
|
|
|
sudo YOUKI_LOG_LEVEL="error" ${ROOT}/integration_test run --runtime "$1" --runtimetest ${ROOT}/runtimetest > $LOGFILE
|
|
|
|
if [ 0 -ne $(grep "not ok" $LOGFILE | wc -l ) ]; then
|
|
cat $LOGFILE
|
|
exit 1
|
|
fi
|
|
|
|
echo "Validation successful for runtime $1"
|
|
exit 0
|
|
|
|
|