From 9432ae531929685b35b4549f2ed300205f6d18f7 Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Thu, 15 Mar 2018 17:06:07 +0100 Subject: [PATCH] Add runtime-tools' validation tests For now, the results of the tests are printed without returning an error. Signed-off-by: Alban Crequy --- .travis.yml | 1 + Makefile | 3 +++ script/oci-runtime-validation | 14 ++++++++++++++ 3 files changed, 18 insertions(+) create mode 100755 script/oci-runtime-validation diff --git a/.travis.yml b/.travis.yml index 0d1c66c6ef7..412ba7db42b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,4 +32,5 @@ before_install: script: - git-validation -run DCO,short-subject -v - make BUILDTAGS="${BUILDTAGS}" + - make BUILDTAGS="${BUILDTAGS}" oci-runtime-validation - make BUILDTAGS="${BUILDTAGS}" clean ci cross diff --git a/Makefile b/Makefile index d490a3f033b..4c935419001 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,9 @@ validate: script/validate-c $(GO) vet $(allpackages) +oci-runtime-validation: + RUNTIME=$(CURDIR)/runc script/oci-runtime-validation + ci: validate test release cross: runcimage diff --git a/script/oci-runtime-validation b/script/oci-runtime-validation new file mode 100755 index 00000000000..5f0c98a9798 --- /dev/null +++ b/script/oci-runtime-validation @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e +set -x + +# Install and run runtime-tools' validation tests +npm install -g tap +go get -d -u github.com/opencontainers/runtime-tools || true + +cd $GOPATH/src/github.com/opencontainers/runtime-tools +make +sudo PATH="$PATH:$(dirname $(which node))" TAP="$(which tap)" RUNTIME="${RUNTIME}" make localvalidation \ + || true # All tests don't pass yet. For now, only display results without returning an error. +