mirror of
https://github.com/containers/youki
synced 2024-11-23 17:32:15 +01:00
ebef6dba09
* Implement `--log-level` In short: Propose the default log level for release to error Keep the --debug flag and it sets the log level to debug Introduce --log-level flag to set the log level --debug flag will be ignored if --log-level flag is also set. Keep the default log level for debug build to debug Signed-off-by: yihuaf <yihuaf@unkies.org> * minor fix to CI Signed-off-by: yihuaf <yihuaf@unkies.org> * move log-level to youki_extend Signed-off-by: yihuaf <yihuaf@unkies.org> * remove the workflow_dispatch trigger Signed-off-by: yihuaf <yihuaf@unkies.org> --------- Signed-off-by: yihuaf <yihuaf@unkies.org>
38 lines
720 B
Bash
Executable File
38 lines
720 B
Bash
Executable File
#! /bin/sh -eu
|
|
|
|
ROOT=$(git rev-parse --show-toplevel)
|
|
RUNTIME=$1
|
|
|
|
if [ "$RUNTIME" = "" ]; then
|
|
echo "please specify runtime"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -e $RUNTIME ]; then
|
|
if ! which $RUNTIME ; then
|
|
echo "$RUNTIME not found"
|
|
exit 1
|
|
fi
|
|
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 ${ROOT}/integration_test run --runtime "$RUNTIME" --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
|
|
|
|
|