From 618aeba54097f158f6958bc558e76c578314333c Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Thu, 21 Feb 2019 07:42:44 -0600 Subject: [PATCH] ci: Run all CI test. run all CI test to increase testing coverage on kernel config changes. Fixes: #346 Signed-off-by: Jose Carlos Venegas Munoz --- .ci/run.sh | 4 ++++ .ci/setup.sh | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.ci/run.sh b/.ci/run.sh index 226c92411e..7487229dfc 100755 --- a/.ci/run.sh +++ b/.ci/run.sh @@ -13,6 +13,10 @@ cidir=$(dirname "$0") source "${cidir}/lib.sh" source /etc/os-release +pushd "${tests_repo_dir}" +.ci/run.sh +popd + # This script will execute packaging tests suite if [ "$ID" == ubuntu ]; then diff --git a/.ci/setup.sh b/.ci/setup.sh index 35e6729b79..9420fd50cf 100755 --- a/.ci/setup.sh +++ b/.ci/setup.sh @@ -20,3 +20,24 @@ if [ "$ID" == ubuntu ]; then echo "Install kernel dependencies" sudo -E apt install -y libelf-dev bc gcc fi + +export tests_repo="${tests_repo:-github.com/kata-containers/tests}" +export tests_repo_dir="$GOPATH/src/$tests_repo" + +clone_tests_repo() +{ + # KATA_CI_NO_NETWORK is (has to be) ignored if there is + # no existing clone. + if [ -d "$tests_repo_dir" -a -n "${KATA_CI_NO_NETWORK:-}" ] + then + return + fi + + go get -d -u "$tests_repo" || true +} + +clone_tests_repo + +pushd "${tests_repo_dir}" +.ci/setup.sh +popd