Skip to content

Commit 17aab4c

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 17aab4c

File tree

3 files changed

+18
-0
lines changed

3 files changed

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

0 commit comments

Comments
 (0)