From 5594f14cc76640d40509ee50a84b5e2e95e09e46 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Tue, 23 Feb 2016 03:23:00 +0300 Subject: [PATCH] travis: execute tests from travis We can't execute userns tests, because a kernel is too old there. Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- .travis.yml | 1 + scripts/travis-tests | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100755 scripts/travis-tests diff --git a/.travis.yml b/.travis.yml index 772229670..121a7c7f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,4 @@ env: - TR_ARCH=aarch64 script: - sudo make -C scripts/build $TR_ARCH + - sudo ./scripts/travis-tests $TR_ARCH diff --git a/scripts/travis-tests b/scripts/travis-tests new file mode 100755 index 000000000..d764d2cb5 --- /dev/null +++ b/scripts/travis-tests @@ -0,0 +1,11 @@ +#!/bin/sh +set -x -e + +test "$1" = "x86_64" || exit 0 + +apt-get update -qq +apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev libnl-3-dev +chmod a+x $HOME +make +make -C test/zdtm +python test/zdtm.py run -a -f h,ns