All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: casmac <1482995675@qq.com>
Cc: qemu-devel@nongnu.org
Subject: Re: how to run qemu test
Date: Fri, 08 May 2020 12:39:38 +0100	[thread overview]
Message-ID: <87y2q24pvp.fsf@linaro.org> (raw)
In-Reply-To: <tencent_D787B2532D5D3E3EBC6DD3B6A714D4106F08@qq.com>


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


           reply	other threads:[~2020-05-08 11:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_D787B2532D5D3E3EBC6DD3B6A714D4106F08@qq.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2q24pvp.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=1482995675@qq.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.