Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ script:
- ./configure
- make -j $(nproc)
- make syntax-check
- make oci-runtime-validation
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ srpm: dist-gzip crun.spec
$(MAKE) -C $(WD) dist-xz
rpmbuild -bs --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" crun.spec

oci-runtime-validation:
RUNTIME=$(CURDIR)/crun tests/oci-runtime-validation

CLEANFILES = crun.spec

libcrun_a_SOURCES = src/libcrun/utils.c \
Expand Down
14 changes: 14 additions & 0 deletions tests/oci-runtime-validation
Original file line number Diff line number Diff line change
@@ -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.