1
0
mirror of https://github.com/containers/youki synced 2024-09-19 18:37:40 +02:00
This commit is contained in:
Yashodhan Joshi 2022-02-20 00:09:14 +05:30
parent 5a33f74146
commit 8a8cc294f1
2 changed files with 7 additions and 6 deletions

View File

@ -36,6 +36,6 @@ jobs:
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev
- name: Validate tests on runc
run: cd scripts && RUNTIME=runc ./rust_integration_tests.sh
run: cd scripts && ./rust_integration_tests.sh runc
- name: Validate tests on youki
run: cd ./scripts && sudo ./rust_integration_tests.sh
run: cd scripts && ./rust_integration_tests.sh youki

View File

@ -4,8 +4,9 @@ ROOT=$(git rev-parse --show-toplevel)
SCRIPT_DIR=${ROOT}/scripts
if [ "$RUNTIME" = "" ]; then
RUNTIME="${SCRIPT_DIR}/youki"
if [ "$1" = "" ]; then
echo "please specify runtime"
exit 1
fi
LOGFILE="${SCRIPT_DIR}/test.log"
@ -17,7 +18,7 @@ ${SCRIPT_DIR}/build.sh
cp ${ROOT}/integration_tests/rust-integration-tests/integration_test/bundle.tar.gz ${SCRIPT_DIR}/bundle.tar.gz
touch ${LOGFILE}
YOUKI_LOG_LEVEL="error" sudo ./integration_test run --runtime $RUNTIME --runtimetest ./runtimetest > $LOGFILE
YOUKI_LOG_LEVEL="error" sudo ./integration_test run --runtime "$1" --runtimetest ./runtimetest > $LOGFILE
# remove the files copied
./clean.sh
@ -27,7 +28,7 @@ if [ 0 -ne $(grep "not ok" $LOGFILE | wc -l ) ]; then
exit 1
fi
echo "Validation successful for runtime $RUNTIME"
echo "Validation successful for runtime $1"
exit 0