diff --git a/.travis.yml b/.travis.yml index fcb245d84c..76b8dc1388 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,3 +23,4 @@ script: - ./configure - make -j $(nproc) - make syntax-check + - make oci-runtime-validation diff --git a/Makefile.am b/Makefile.am index 920c69bdb1..597d374ee2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/tests/oci-runtime-validation b/tests/oci-runtime-validation new file mode 100755 index 0000000000..5f0c98a979 --- /dev/null +++ b/tests/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. +