All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: how to run qemu test
       [not found] <tencent_D787B2532D5D3E3EBC6DD3B6A714D4106F08@qq.com>
@ 2020-05-08 11:39 ` Alex Bennée
  0 siblings, 0 replies; only message in thread
From: Alex Bennée @ 2020-05-08 11:39 UTC (permalink / raw)
  To: casmac; +Cc: qemu-devel


casmac <1482995675@qq.com> writes:

> Hi all,
> &nbsp; &nbsp;I am having trouble running qemu tests. basically ,can not run check-tcg and check-unit.
> &nbsp; Before executing the tests, I did the configuration:&nbsp;configure --target-list=sparc-softmmu --cross-prefix=x86_64-w64-mingw32- --enable-gtk --enable-sdl --enable-debug
> &nbsp; The source code is built&nbsp; alrigtht . but can not execute the tests.
> &nbsp; Running make check-tcg returned nothing but:
> $ make check-tcg
> &nbsp; BUILD&nbsp; &nbsp;TCG tests for sparc-softmmu
> &nbsp; BUILD&nbsp; &nbsp;sparc-softmmu guest-tests SKIPPED
> &nbsp; RUN&nbsp; &nbsp; &nbsp;TCG tests for sparc-softmmu
> &nbsp; RUN&nbsp; &nbsp; &nbsp;tests for sparc-softmmu SKIPPED

You will either need docker/podman setup so we can use those images to
cross-build the tests for other architectures or have cross compilers
installed for your targets. This is documented in docs/devel/testing.rst

> &nbsp; Runing make check-unit, give me "undefined reference"error message:
> $ make check-unit
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: tests/test-bitmap.o: in function `check_bitmap_copy_with_offset':
> D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:25: undefined reference to `random'
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:26: undefined reference to `random'
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:27: undefined reference to `random'
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:28: undefined reference to `random'
> collect2.exe: error: ld returned 1 exit status
> make: *** [/d/cuix/workspace_devl/qemu-4.2.0/rules.mak:124:
> tests/test-bitmap.exe] error&nbsp; 1

Hmm not sure about this but I suspect the unit tests are written
assuming a POSIX environment although I would have thought glib would
have smoothed over those differences.

>
> &nbsp; &nbsp;Something went wrong but I have no clue at all. Any suggestions?&nbsp;
> &nbsp; &nbsp;Thanks a lot.
>
>
> regards,
>
>
> xiaolei


-- 
Alex Bennée


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-08 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <tencent_D787B2532D5D3E3EBC6DD3B6A714D4106F08@qq.com>
2020-05-08 11:39 ` how to run qemu test Alex Bennée

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.