qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 0/7] Target-specific unit test support, add unit


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH v2 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code
Date: Tue, 30 Sep 2014 15:25:59 -0300

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.

This needs to be applied after:

    From: Eduardo Habkost <address@hidden>
    To: address@hidden, address@hidden
    Date: Fri, 26 Sep 2014 16:46:01 -0300
    Message-Id: <address@hidden>
    Subject: [Qemu-devel] [PATCH 0/3] bitops: Header dependency fixes

Changes v1 -> v2:
 * Make dependency list of test binary much simpler, now that cpus.o
   was removed.

Eduardo Habkost (7):
  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

 target-i386/cpu.c      |  12 ++--
 tests/.gitignore       |   1 +
 tests/Makefile         |  51 ++++++++++++----
 tests/coroutine-stub.c |  13 ++++
 tests/test-vmstate.c   |  11 ----
 tests/test-x86-cpu.c   |  97 +++++++++++++++++++++++++++++
 tests/vl-stub.c        |  15 +++++
 tests/x86-stub.c       | 163 +++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 337 insertions(+), 26 deletions(-)
 create mode 100644 tests/coroutine-stub.c
 create mode 100644 tests/test-x86-cpu.c
 create mode 100644 tests/vl-stub.c
 create mode 100644 tests/x86-stub.c

-- 
1.9.3




reply via email to

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