mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 14:24:02 +08:00
docker: add installation to build tests
Basic test that "make install" works; this requires msgfmt so add gettext to the packages. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1506095371-23160-1-git-send-email-pbonzini@redhat.com> [Rebase to master. - Fam] Signed-off-by: Fam Zheng <famz@redhat.com>
This commit is contained in:
parent
ab16152926
commit
6283847857
@ -44,3 +44,11 @@ prep_fail()
|
||||
echo "$@"
|
||||
exit 2
|
||||
}
|
||||
|
||||
install_qemu()
|
||||
{
|
||||
make install $MAKEFLAGS DESTDIR=$PWD/=destdir
|
||||
ret=$?
|
||||
rm -rf $PWD/=destdir
|
||||
return $ret
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ ENV PACKAGES \
|
||||
flex \
|
||||
g++ \
|
||||
gcc \
|
||||
gettext \
|
||||
git \
|
||||
glib2-devel \
|
||||
libepoxy-devel \
|
||||
|
@ -9,6 +9,7 @@ ENV PACKAGES \
|
||||
flex \
|
||||
g++ \
|
||||
gcc \
|
||||
gettext \
|
||||
git \
|
||||
glib2-devel \
|
||||
libepoxy-devel \
|
||||
|
@ -27,6 +27,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
clang \
|
||||
debian-ports-archive-keyring \
|
||||
flex \
|
||||
gettext \
|
||||
git \
|
||||
pkg-config \
|
||||
psmisc \
|
||||
|
@ -26,6 +26,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
clang \
|
||||
curl \
|
||||
flex \
|
||||
gettext \
|
||||
git \
|
||||
gnupg \
|
||||
pkg-config \
|
||||
|
@ -22,6 +22,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
ca-certificates \
|
||||
clang \
|
||||
flex \
|
||||
gettext \
|
||||
git \
|
||||
pkg-config \
|
||||
psmisc \
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM fedora:latest
|
||||
ENV PACKAGES \
|
||||
ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
|
||||
ccache gettext git tar PyYAML sparse flex bison python2 bzip2 hostname \
|
||||
glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
|
||||
gcc gcc-c++ clang make perl which bc findutils libaio-devel \
|
||||
nettle-devel \
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM centos:6
|
||||
RUN yum install -y \
|
||||
tar git make gcc g++ \
|
||||
tar gettext git make gcc g++ \
|
||||
zlib-devel SDL-devel pixman-devel \
|
||||
epel-release
|
||||
RUN yum install -y libfdt-devel ccache
|
||||
|
@ -12,7 +12,7 @@ ENV PACKAGES flex bison \
|
||||
libbluetooth-dev librbd-dev libaio-dev glusterfs-common libnuma-dev libepoxy-dev libdrm-dev libgbm-dev \
|
||||
libjemalloc-dev libcacard-dev libusbredirhost-dev libnfs-dev libcap-dev libattr1-dev \
|
||||
texinfo \
|
||||
git make ccache python-yaml gcc clang sparse
|
||||
gettext git make ccache python-yaml gcc clang sparse
|
||||
RUN apt-get -y install $PACKAGES
|
||||
RUN dpkg -l $PACKAGES | sort > /packages.txt
|
||||
ENV FEATURES clang pyyaml
|
||||
|
@ -18,3 +18,4 @@ cd "$BUILD_DIR"
|
||||
DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
|
||||
TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
|
||||
build_qemu
|
||||
install_qemu
|
||||
|
@ -24,3 +24,4 @@ OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang"
|
||||
#--extra-cflags=-fno-sanitize=float-divide-by-zero"
|
||||
build_qemu $OPTS
|
||||
make $MAKEFLAGS check
|
||||
install_qemu
|
||||
|
@ -86,4 +86,4 @@ build_qemu \
|
||||
--enable-xen-pci-passthrough \
|
||||
--enable-xen-pv-domain-build \
|
||||
--enable-xfsctl \
|
||||
&& make check $MAKEFLAGS
|
||||
&& make check $MAKEFLAGS && install_qemu
|
||||
|
@ -31,6 +31,7 @@ for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
|
||||
--enable-guest-agent \
|
||||
--with-sdlabi=1.2 \
|
||||
--with-gtkabi=2.0
|
||||
install_qemu
|
||||
make clean
|
||||
|
||||
done
|
||||
|
@ -19,3 +19,4 @@ DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
|
||||
TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
|
||||
build_qemu
|
||||
make check $MAKEFLAGS
|
||||
install_qemu
|
||||
|
Loading…
Reference in New Issue
Block a user