qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC 00/10] Target-specific unit test support, add unit tests for target-i386/cpu.c code
@ 2014-09-25 20:18 Eduardo Habkost
  2014-09-25 20:18 ` [Qemu-devel] [RFC 01/10] tests: Add missing include to test-bitops.c Eduardo Habkost
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Eduardo Habkost @ 2014-09-25 20:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber, Paolo Bonzini

This is an attempt to write unit tests for the target-i386/cpu.c code. By now, I
just implemented 3 simple test cases, to ensure X86CPU objects can be created,
and to ensure the CPU features are set properly depending on the CPU model
table.

Eduardo Habkost (10):
  tests: Add missing include to test-bitops.c
  bitops.h: Don't include qemu-common.h
  bitmap.h: Don't include qemu-common.h
  tests: Move fake yield_until_fd_readable() to coroutine-stub.c
  tests: Support target-specific unit tests
  tests: Make test-x86-cpuid target-specific
  tests: Add unit test for X86CPU code
  target-i386: Isolate enabled-by-default features to a separate array
  tests: test-x86-cpu: Add TCG feature bit initialization test
  tests: test-x86-cpu: Add KVM feature bit initialization test

 include/qemu/bitmap.h  |   5 +-
 include/qemu/bitops.h  |   4 +-
 target-i386/cpu.c      |  12 ++--
 tests/.gitignore       |   1 +
 tests/Makefile         |  48 ++++++++++---
 tests/aio-stub.c       |  20 ++++++
 tests/block-stub.c     |  11 +++
 tests/coroutine-stub.c |  13 ++++
 tests/monitor-stub.c   |  34 +++++++++
 tests/test-bitops.c    |   1 +
 tests/test-vmstate.c   |  11 ---
 tests/test-x86-cpu.c   |  97 ++++++++++++++++++++++++++
 tests/timer-stub.c     |  65 +++++++++++++++++
 tests/vl-stub.c        |  45 ++++++++++++
 tests/x86-stub.c       | 186 +++++++++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 525 insertions(+), 28 deletions(-)
 create mode 100644 tests/aio-stub.c
 create mode 100644 tests/block-stub.c
 create mode 100644 tests/coroutine-stub.c
 create mode 100644 tests/monitor-stub.c
 create mode 100644 tests/test-x86-cpu.c
 create mode 100644 tests/timer-stub.c
 create mode 100644 tests/vl-stub.c
 create mode 100644 tests/x86-stub.c

-- 
1.9.3

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-09-26 16:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-25 20:18 [Qemu-devel] [RFC 00/10] Target-specific unit test support, add unit tests for target-i386/cpu.c code Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 01/10] tests: Add missing include to test-bitops.c Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 02/10] bitops.h: Don't include qemu-common.h Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 03/10] bitmap.h: " Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 04/10] tests: Move fake yield_until_fd_readable() to coroutine-stub.c Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 05/10] tests: Support target-specific unit tests Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 06/10] tests: Make test-x86-cpuid target-specific Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 07/10] tests: Add unit test for X86CPU code Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 08/10] target-i386: Isolate enabled-by-default features to a separate array Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 09/10] tests: test-x86-cpu: Add TCG feature bit initialization test Eduardo Habkost
2014-09-25 20:18 ` [Qemu-devel] [RFC 10/10] tests: test-x86-cpu: Add KVM " Eduardo Habkost
2014-09-26 15:20 ` [Qemu-devel] [RFC 00/10] Target-specific unit test support, add unit tests for target-i386/cpu.c code Paolo Bonzini
2014-09-26 16:34   ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).