Skip to content

Commit

Permalink
build the tests before running integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k committed May 27, 2021
1 parent a12092e commit 1db813a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ $ docker run -it --rm --runtime youki busybox

### Integration test

You can use [opencontainers/runtime-rools](https://github.com/opencontainers/runtime-tools) to do integration testing used in CI.
See it's documentation for details.
Go and node-tap are required to run integration tests. See the [opencontainers/runtime-tools]((https://github.com/opencontainers/runtime-tools) README for details.

```
$ git submodule update --init --recursive
$ ./integration_test.sh
```

# Design and implementation of youki

Expand Down
5 changes: 4 additions & 1 deletion integration_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
#!/bin/bash -eu

root=$(pwd)
cd integration_test/src/github.com/opencontainers/runtime-tools
pwd
ls -al
cat Makefile
GOPATH=$root/integration_test make runtimetest validation-executables
test_cases=("default/default.t" "linux_cgroups_devices/linux_cgroups_devices.t" "linux_cgroups_hugetlb/linux_cgroups_hugetlb.t" "linux_cgroups_pids/linux_cgroups_pids.t" "linux_cgroups_memory/linux_cgroups_memory.t" "linux_cgroups_network/linux_cgroups_network.t")
for case in "${test_cases[@]}"; do
Expand Down

0 comments on commit 1db813a

Please sign in to comment.