From 1db813a29b6631e512447b06993d3cc2d64e35ec Mon Sep 17 00:00:00 2001 From: utam0k Date: Thu, 27 May 2021 21:24:11 +0900 Subject: [PATCH] build the tests before running integration tests. --- .github/workflows/main.yml | 2 ++ README.md | 8 ++++++-- integration_test.sh | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df8a797d39..1910472419 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/README.md b/README.md index e68c65f8e3..e72599df31 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/integration_test.sh b/integration_test.sh index 7cd2706991..e7d064a850 100755 --- a/integration_test.sh +++ b/integration_test.sh @@ -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