Skip to content

Commit 62a6ebc

Browse files
committed
Add runtime-tools' validation tests
For now, the results of the tests are printed without returning an error. Signed-off-by: Alban Crequy <[email protected]>
1 parent 69663f0 commit 62a6ebc

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ before_install:
3232
script:
3333
- git-validation -run DCO,short-subject -v
3434
- make BUILDTAGS="${BUILDTAGS}"
35+
- make BUILDTAGS="${BUILDTAGS}" oci-runtime-validation
3536
- make BUILDTAGS="${BUILDTAGS}" clean ci

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ validate:
115115
script/validate-c
116116
$(GO) vet $(allpackages)
117117

118+
oci-runtime-validation:
119+
script/oci-runtime-validation
120+
118121
ci: validate test release
119122

120123
# memoize allpackages, so that it's executed only once and only if used

script/oci-runtime-validation

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
REPOPATH="$( cd "$(dirname "$0")/.." ; pwd -P )"
7+
RUNTIME="$REPOPATH/runc"
8+
9+
# Install and run runtime-tools' validation tests
10+
npm install -g tap
11+
go get -d -u github.com/opencontainers/runtime-tools || true
12+
13+
cd $GOPATH/src/github.com/opencontainers/runtime-tools
14+
make
15+
sudo PATH=$PATH:$(dirname $(which node)) TAP=$(which tap) RUNTIME=$RUNTIME make localvalidation \
16+
|| true # All tests don't pass yet. For now, only display results without returning an error.
17+

0 commit comments

Comments
 (0)