Skip to content

Commit 09524fc

Browse files
albangiuseppe
authored andcommitted
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 92a024c commit 09524fc

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
@@ -23,3 +23,4 @@ script:
2323
- ./configure
2424
- make -j $(nproc)
2525
- make syntax-check
26+
- make oci-runtime-validation

Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ srpm: dist-gzip crun.spec
1616
$(MAKE) -C $(WD) dist-xz
1717
rpmbuild -bs --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" crun.spec
1818

19+
oci-runtime-validation:
20+
RUNTIME=$(CURDIR)/crun tests/oci-runtime-validation
21+
1922
CLEANFILES = crun.spec
2023

2124
libcrun_a_SOURCES = src/libcrun/utils.c \

tests/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)