Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit c3db1fd

Browse files
committed
add full runv functional test(oci compatible)
Signed-off-by: Crazykev <[email protected]>
1 parent ff57280 commit c3db1fd

15 files changed

+932
-13
lines changed

.travis.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ matrix:
99
- go: 1.7
1010

1111
before_install:
12-
- sudo apt-get update -qq
13-
- sudo apt-get install -y -qq autoconf automake pkg-config libdevmapper-dev libvirt-dev libvirt-bin wget libaio1 libpixman-1-0
14-
- wget https://s3-us-west-1.amazonaws.com/hypercontainer-download/qemu-hyper/qemu-hyper_2.4.1-1_amd64.deb && sudo dpkg -i --force-all qemu-hyper_2.4.1-1_amd64.deb
15-
- git clone https://github.com/hyperhq/hyperstart.git ${GOPATH}/src/github.com/hyperhq/hyperstart
12+
- cd ${TRAVIS_BUILD_DIR} && hack/ci-setup.sh
1613

1714
# override the default `install`, otherwise default `install` will export ${TRAVIS_BUILD_DIR}/Godeps/_workspace as GOPATH
1815
# see https://docs.travis-ci.com/user/languages/go#Dependency-Management
@@ -21,7 +18,11 @@ install:
2118
- cd ${TRAVIS_BUILD_DIR}
2219
- hack/verify-gofmt.sh
2320
- hack/validate-vet.sh
24-
- ./autogen.sh && ./configure && make && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} make install
21+
- ./autogen.sh && ./configure --without-xen && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} make install
2522

2623
script:
27-
- cd ${TRAVIS_BUILD_DIR} && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} hack/test-cmd.sh
24+
#- cd ${TRAVIS_BUILD_DIR} && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} hack/test-cmd.sh
25+
- hack/functional-test.sh
26+
27+
after_failure:
28+
- hack/.ci/ci-teardown.sh

hack/.cc-configure.sh

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/bash
2+
# This file is part of cc-oci-runtime.
3+
#
4+
# Copyright (C) 2017 Intel Corporation
5+
#
6+
# This program is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU General Public License
8+
# as published by the Free Software Foundation; either version 2
9+
# of the License, or (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with this program; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
20+
set -e -x
21+
22+
source $(dirname "$0")/lib/ci-common.sh
23+
24+
cd $CC_ROOT
25+
26+
configure_opts=""
27+
28+
# disable uesless ones for runv
29+
configure_opts+=" --disable-code-coverage"
30+
configure_opts+=" --disable-tests"
31+
configure_opts+=" --disable-cppcheck"
32+
configure_opts+=" --disable-valgrind"
33+
configure_opts+=" --disable-valgrind-helgrind"
34+
configure_opts+=" --disable-valgrind-drd"
35+
configure_opts+=" --disable-silent-rules"
36+
37+
# additional controls
38+
configure_opts+=" --srcdir=\"${CC_ROOT}\""
39+
configure_opts+=" --enable-auto-bundle-creation"
40+
configure_opts+=" --with-auto-bundle-creation-path=\"${BUNDLE_PATH}\""
41+
# fake hyperstart initrd as clear containers image
42+
configure_opts+=" --with-cc-image=\"${HYPERSTART_INITRD}\""
43+
# fake hyperstart kernel as clear containers kernel
44+
configure_opts+=" --with-cc-kernel=\"${HYPERSTART_KERNEL}\""
45+
46+
# Test enable
47+
configure_opts+=" --enable-functional-tests"
48+
49+
eval ./autogen.sh "$configure_opts"

0 commit comments

Comments
 (0)