qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to use qtest


From: Markus Armbruster
Subject: Re: [Qemu-devel] How to use qtest
Date: Wed, 14 May 2014 11:32:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

"Gonglei (Arei)" <address@hidden> writes:

>> -----Original Message-----
>> From: Markus Armbruster [mailto:address@hidden
>> Sent: Wednesday, May 14, 2014 3:34 PM
>> To: Gonglei (Arei)
>> Cc: address@hidden; Andreas Färber
>> Subject: Re: [Qemu-devel] How to use qtest
>> 
>> "Gonglei (Arei)" <address@hidden> writes:
>> 
>> > Hi,
>> >
>> > I know qemu has a test framework, and I get some information
>> > from http://wiki.qemu.org/Features/QTest
>> >
>> > Recently I want to use qtest for some modules, but I have no idea
>> > how to run those tests. Such as tests/ e1000-test
>> >
>> > Any guidance? Or how to? Thanks in advance!
>> >
>> >
>> > Best regards,
>> > -Gonglei
>> 
>> Try "make check-help".
>
> Thanks!
> Is there two steps for qtest?
> First, "make check" for running tests, 
> Second, make "check-report.html" for getting results.

I run just "make check".  Failing tests fail the make, which is usually
all I need.

> If I want to write some qtest by myself, any guidance? Thanks.

You figure out it from existing tests and libqtest.h.  There's no
tutorial, sorry.

To find existing tests, try "git-grep libqtest.h tests".  Which ones to
read first depends on what kind of test you want to write.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]