mirror of
https://github.com/containers/youki
synced 2024-05-05 07:06:14 +02:00
Add runtimetest dir to workflow
This commit is contained in:
parent
5553d5ce6b
commit
f5227f8e1a
|
@ -18,6 +18,7 @@ jobs:
|
|||
with:
|
||||
filters: |
|
||||
./integration_test: crates/integration_test/**
|
||||
./runtimetest : runtimetest/**
|
||||
validate:
|
||||
needs: [changes]
|
||||
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
|
||||
|
|
|
@ -21,7 +21,8 @@ jobs:
|
|||
./crates/libcontainer: crates/libcontainer/**
|
||||
./crates/libcgroups: crates/libcgroups/**
|
||||
./crates/libseccomp: crates/libseccomp/**
|
||||
./crates/integration_test: crates/integration_test/**
|
||||
./crates/integration_test: crates/integration_test/**
|
||||
./runtimetest : runtimetest/**
|
||||
check:
|
||||
needs: [changes]
|
||||
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
|
||||
|
|
|
@ -12,6 +12,7 @@ RUNTIME=./youki
|
|||
# test.sh build
|
||||
# test.sh run
|
||||
# test.sh run runtime-name
|
||||
# test.sh runtime-name
|
||||
|
||||
if [[ "$1" = "build" ]]; then
|
||||
exit 0
|
||||
|
@ -21,14 +22,14 @@ fi
|
|||
# else the consider first argument as runtime name
|
||||
if [[ -n "$2" ]]; then
|
||||
RUNTIME="$2"
|
||||
elif [[-n "$1" ]]
|
||||
elif [[ -n "$1" ]]; then
|
||||
RUNTIME="$1"
|
||||
fi
|
||||
|
||||
|
||||
logfile="./test_log.log"
|
||||
touch $logfile
|
||||
sudo ./youki_integration_test run --runtime $RUNTIME --runtimetest ./runtimetest > $logfile
|
||||
sudo ./youki_integration_test run --runtime "$RUNTIME" --runtimetest "./runtimetest" > $logfile
|
||||
if [ 0 -ne $(grep "not ok" $logfile | wc -l ) ]; then
|
||||
cat $logfile
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue