make test fails on Mac OS X
The 'make test' command fails to build on Mac OS X. This is because of a missing header file. Here is the error:
include/glib-compat.h:19:18: fatal error: glib.h: No such file or directory
#include <glib.h>
Quoted 4 lines · Programmingkid
The 'make test' command fails to build on Mac OS X. This is because of a missing header file. Here is the error:
include/glib-compat.h:19:18: fatal error:glib.h: No such file or directory
#include <glib.h>
"make test" builds a bunch of unmaintained TCG tests. Our actual working test suite is "make check".
-- PMM
Am 10.04.2015 um 19:56 schrieb Programmingkid:
Quoted 4 lines
The 'make test' command fails to build on Mac OS X. This is because of a missing header file. Here is the error:
include/glib-compat.h:19:18: fatal error:glib.h: No such file or directory
#include <glib.h>
On Linux, this gets me past that point, but not yet much further:
tests/tcg/Makefile +1 -0
@@ -10,6 +10,7 @@ CC_X86_64=$(CC_I386) -m64 QEMU_INCLUDES += -I../.. CFLAGS=-Wall -O2 -g -fno-strict-aliasing #CFLAGS+=-msse2 +QEMU_CFLAGS += $(GLIB_CFLAGS) LDFLAGS= # TODO: automatically detect ARM and MIPS compilers, and run those too
On Mac OS X, executing qemu-i386 (as opposed to qemu-system-i386) won't work though, as darwin-user is no longer available.
Also, the Makefile seems to assume that it's running on x86.
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
Quoted 4 lines · Andreas Färber
On Mac OS X, executing qemu-i386 (as opposed to qemu-system-i386) won't work though, as darwin-user is no longer available.
Also, the
Makefileseems to assume that it's running on x86.
Yes, it has all sorts of problems. We should probably salvage any of the tests that are actually useful and move them into 'make check', and get rid of 'make test' as a target entirely.
-- PMM
Am 11.04.2015 um 17:52 schrieb Peter Maydell:
Quoted 10 lines · Andreas Färber
Quoted 4 lines
On Mac OS X, executing qemu-i386 (as opposed to qemu-system-i386) won't work though, as darwin-user is no longer available.
Also, the
Makefileseems to assume that it's running on x86.Yes, it has all sorts of problems. We should probably salvage any of the tests that are actually useful and move them into 'make check', and get rid of 'make test' as a target entirely.
For now I just sent out a series fixing the fallout.
Similar in spirit to some of those tests, I had been thinking about testing linux-user by running host binaries, comparing native and emulated output. make check only covers the softmmus today.
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
Quoted 3 lines · Andreas Färber
Similar in spirit to some of those tests, I had been thinking about testing linux-user by running host binaries, comparing native and emulated output. make check only covers the softmmus today.
Yeah. I run the linux-user-test binaries from http://wiki.qemu.org/Testing
as a smoke-test that we haven't totally broken things. I think Riku has a more comprehensive set of tests. There's also the LTP linux-test-project tests, though those are pretty heavyweight.
The thing I usually end up getting stuck on with linux-user tests is how you make this (a) runnable by anybody (b) reproducible
(c) gpl-compliant where relevant (d) easy for anybody to update the tests. The first and arguably the second of those requires "doesn't need a target toolchain when running 'make check'", but the second two argue for "don't check binary blobs into git"...
-- PMM