* [Qemu-devel] [PATCH] docker: Build in a clean directory
@ 2016-09-28 7:31 Fam Zheng
2016-09-28 13:47 ` Markus Armbruster
2016-09-28 15:24 ` Alex Bennée
0 siblings, 2 replies; 5+ messages in thread
From: Fam Zheng @ 2016-09-28 7:31 UTC (permalink / raw)
To: qemu-devel; +Cc: Fam Zheng
Currently we configure and build under "$QEMU_SRC/tests/docker" which is
dubious, create a fixed directory (to be friendly to ccache) and change
to there before calling build_qemu.
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/docker/common.rc | 3 +++
tests/docker/test-clang | 2 ++
tests/docker/test-full | 2 ++
tests/docker/test-mingw | 2 ++
tests/docker/test-quick | 2 ++
5 files changed, 11 insertions(+)
diff --git a/tests/docker/common.rc b/tests/docker/common.rc
index 510a3ad..21657e8 100755
--- a/tests/docker/common.rc
+++ b/tests/docker/common.rc
@@ -11,6 +11,9 @@
# or (at your option) any later version. See the COPYING file in
# the top-level directory.
+BUILD_DIR=/var/tmp/qemu-build
+mkdir $BUILD_DIR
+
requires()
{
for c in $@; do
diff --git a/tests/docker/test-clang b/tests/docker/test-clang
index 60e4e97..16485e6 100755
--- a/tests/docker/test-clang
+++ b/tests/docker/test-clang
@@ -15,6 +15,8 @@
requires clang
+cd "$BUILD_DIR"
+
OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang"
# -fsanitize=undefined is broken on Fedora 23, skip it for now
# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
diff --git a/tests/docker/test-full b/tests/docker/test-full
index fd9b798..05f0d49 100755
--- a/tests/docker/test-full
+++ b/tests/docker/test-full
@@ -13,5 +13,7 @@
. common.rc
+cd "$BUILD_DIR"
+
build_qemu
make check $MAKEFLAGS
diff --git a/tests/docker/test-mingw b/tests/docker/test-mingw
index c03757a..3396876 100755
--- a/tests/docker/test-mingw
+++ b/tests/docker/test-mingw
@@ -15,6 +15,8 @@
requires mingw dtc
+cd "$BUILD_DIR"
+
for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
TARGET_LIST=x86_64-softmmu,aarch64-softmmu \
build_qemu --cross-prefix=$prefix \
diff --git a/tests/docker/test-quick b/tests/docker/test-quick
index 7885dfa..c465dc0 100755
--- a/tests/docker/test-quick
+++ b/tests/docker/test-quick
@@ -13,6 +13,8 @@
. common.rc
+cd "$BUILD_DIR"
+
DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
build_qemu
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] docker: Build in a clean directory
2016-09-28 7:31 [Qemu-devel] [PATCH] docker: Build in a clean directory Fam Zheng
@ 2016-09-28 13:47 ` Markus Armbruster
2016-09-29 3:46 ` Fam Zheng
2016-09-28 15:24 ` Alex Bennée
1 sibling, 1 reply; 5+ messages in thread
From: Markus Armbruster @ 2016-09-28 13:47 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel
Fam Zheng <famz@redhat.com> writes:
> Currently we configure and build under "$QEMU_SRC/tests/docker" which is
> dubious, create a fixed directory (to be friendly to ccache) and change
Period instead of comma, to help the reader understand where the part
describing the current state ends, and the part describing the change
starts.
> to there before calling build_qemu.
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] docker: Build in a clean directory
2016-09-28 7:31 [Qemu-devel] [PATCH] docker: Build in a clean directory Fam Zheng
2016-09-28 13:47 ` Markus Armbruster
@ 2016-09-28 15:24 ` Alex Bennée
2016-09-29 3:48 ` Fam Zheng
1 sibling, 1 reply; 5+ messages in thread
From: Alex Bennée @ 2016-09-28 15:24 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel
Fam Zheng <famz@redhat.com> writes:
> Currently we configure and build under "$QEMU_SRC/tests/docker" which is
> dubious, create a fixed directory (to be friendly to ccache) and change
> to there before calling build_qemu.
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
> tests/docker/common.rc | 3 +++
> tests/docker/test-clang | 2 ++
> tests/docker/test-full | 2 ++
> tests/docker/test-mingw | 2 ++
> tests/docker/test-quick | 2 ++
> 5 files changed, 11 insertions(+)
>
> diff --git a/tests/docker/common.rc b/tests/docker/common.rc
> index 510a3ad..21657e8 100755
> --- a/tests/docker/common.rc
> +++ b/tests/docker/common.rc
> @@ -11,6 +11,9 @@
> # or (at your option) any later version. See the COPYING file in
> # the top-level directory.
>
> +BUILD_DIR=/var/tmp/qemu-build
> +mkdir $BUILD_DIR
Is that safe on multi-user machines?
Also should we honour $TMPDIR if set?
> +
> requires()
> {
> for c in $@; do
> diff --git a/tests/docker/test-clang b/tests/docker/test-clang
> index 60e4e97..16485e6 100755
> --- a/tests/docker/test-clang
> +++ b/tests/docker/test-clang
> @@ -15,6 +15,8 @@
>
> requires clang
>
> +cd "$BUILD_DIR"
> +
> OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang"
> # -fsanitize=undefined is broken on Fedora 23, skip it for now
> # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
> diff --git a/tests/docker/test-full b/tests/docker/test-full
> index fd9b798..05f0d49 100755
> --- a/tests/docker/test-full
> +++ b/tests/docker/test-full
> @@ -13,5 +13,7 @@
>
> . common.rc
>
> +cd "$BUILD_DIR"
> +
> build_qemu
> make check $MAKEFLAGS
> diff --git a/tests/docker/test-mingw b/tests/docker/test-mingw
> index c03757a..3396876 100755
> --- a/tests/docker/test-mingw
> +++ b/tests/docker/test-mingw
> @@ -15,6 +15,8 @@
>
> requires mingw dtc
>
> +cd "$BUILD_DIR"
> +
> for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
> TARGET_LIST=x86_64-softmmu,aarch64-softmmu \
> build_qemu --cross-prefix=$prefix \
> diff --git a/tests/docker/test-quick b/tests/docker/test-quick
> index 7885dfa..c465dc0 100755
> --- a/tests/docker/test-quick
> +++ b/tests/docker/test-quick
> @@ -13,6 +13,8 @@
>
> . common.rc
>
> +cd "$BUILD_DIR"
> +
> DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
> TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
> build_qemu
--
Alex Bennée
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] docker: Build in a clean directory
2016-09-28 13:47 ` Markus Armbruster
@ 2016-09-29 3:46 ` Fam Zheng
0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2016-09-29 3:46 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel
On Wed, 09/28 15:47, Markus Armbruster wrote:
> Fam Zheng <famz@redhat.com> writes:
>
> > Currently we configure and build under "$QEMU_SRC/tests/docker" which is
> > dubious, create a fixed directory (to be friendly to ccache) and change
>
> Period instead of comma, to help the reader understand where the part
> describing the current state ends, and the part describing the change
> starts.
Yes! Sorry for the confusion!
Fam
>
> > to there before calling build_qemu.
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] docker: Build in a clean directory
2016-09-28 15:24 ` Alex Bennée
@ 2016-09-29 3:48 ` Fam Zheng
0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2016-09-29 3:48 UTC (permalink / raw)
To: Alex Bennée; +Cc: qemu-devel
On Wed, 09/28 16:24, Alex Bennée wrote:
>
> Fam Zheng <famz@redhat.com> writes:
>
> > Currently we configure and build under "$QEMU_SRC/tests/docker" which is
> > dubious, create a fixed directory (to be friendly to ccache) and change
> > to there before calling build_qemu.
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> > ---
> > tests/docker/common.rc | 3 +++
> > tests/docker/test-clang | 2 ++
> > tests/docker/test-full | 2 ++
> > tests/docker/test-mingw | 2 ++
> > tests/docker/test-quick | 2 ++
> > 5 files changed, 11 insertions(+)
> >
> > diff --git a/tests/docker/common.rc b/tests/docker/common.rc
> > index 510a3ad..21657e8 100755
> > --- a/tests/docker/common.rc
> > +++ b/tests/docker/common.rc
> > @@ -11,6 +11,9 @@
> > # or (at your option) any later version. See the COPYING file in
> > # the top-level directory.
> >
> > +BUILD_DIR=/var/tmp/qemu-build
> > +mkdir $BUILD_DIR
>
> Is that safe on multi-user machines?
>
> Also should we honour $TMPDIR if set?
It's not, but containers are not multi-user, at least not here in QEMU docker
testing. We already use a fixed directory before this change, which is
$QEMU_SRC/tests/docker, so this patch is not making it worse.
And we know $TMPDIR is not set, too.
Fam
>
> > +
> > requires()
> > {
> > for c in $@; do
> > diff --git a/tests/docker/test-clang b/tests/docker/test-clang
> > index 60e4e97..16485e6 100755
> > --- a/tests/docker/test-clang
> > +++ b/tests/docker/test-clang
> > @@ -15,6 +15,8 @@
> >
> > requires clang
> >
> > +cd "$BUILD_DIR"
> > +
> > OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang"
> > # -fsanitize=undefined is broken on Fedora 23, skip it for now
> > # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
> > diff --git a/tests/docker/test-full b/tests/docker/test-full
> > index fd9b798..05f0d49 100755
> > --- a/tests/docker/test-full
> > +++ b/tests/docker/test-full
> > @@ -13,5 +13,7 @@
> >
> > . common.rc
> >
> > +cd "$BUILD_DIR"
> > +
> > build_qemu
> > make check $MAKEFLAGS
> > diff --git a/tests/docker/test-mingw b/tests/docker/test-mingw
> > index c03757a..3396876 100755
> > --- a/tests/docker/test-mingw
> > +++ b/tests/docker/test-mingw
> > @@ -15,6 +15,8 @@
> >
> > requires mingw dtc
> >
> > +cd "$BUILD_DIR"
> > +
> > for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
> > TARGET_LIST=x86_64-softmmu,aarch64-softmmu \
> > build_qemu --cross-prefix=$prefix \
> > diff --git a/tests/docker/test-quick b/tests/docker/test-quick
> > index 7885dfa..c465dc0 100755
> > --- a/tests/docker/test-quick
> > +++ b/tests/docker/test-quick
> > @@ -13,6 +13,8 @@
> >
> > . common.rc
> >
> > +cd "$BUILD_DIR"
> > +
> > DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
> > TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
> > build_qemu
>
>
> --
> Alex Bennée
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-09-29 3:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 7:31 [Qemu-devel] [PATCH] docker: Build in a clean directory Fam Zheng
2016-09-28 13:47 ` Markus Armbruster
2016-09-29 3:46 ` Fam Zheng
2016-09-28 15:24 ` Alex Bennée
2016-09-29 3:48 ` Fam Zheng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.