From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya8AJ-0004fA-Mv for qemu-devel@nongnu.org; Mon, 23 Mar 2015 15:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya8AE-0003Qf-Nj for qemu-devel@nongnu.org; Mon, 23 Mar 2015 15:37:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya8AE-0003QZ-FP for qemu-devel@nongnu.org; Mon, 23 Mar 2015 15:37:30 -0400 From: Eduardo Habkost Date: Mon, 23 Mar 2015 16:37:05 -0300 Message-Id: <1427139432-27530-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.4 v5 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Igor Mammedov Changes v4 -> v5: * Rewrite fake kvm_arch_get_supported_cpuid() code * Add new test to ensure KVM defaults won't override explicit command-line options Changes v3 -> v4: * Move target_words_bigendian() prototype back inside tests/x86-stub.c. Changes v2 -> v3: * Extra KVM "host" CPU model test cases * Move target_words_bigendian() prototype to exec-all.h Changes v1 -> v2: * Make dependency list of test binary much simpler, now that cpus.o was removed. Eduardo Habkost (7): 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 tests: test-x86-cpu: Ensure that -cpu override KVM-specific defaults target-i386/cpu.c | 12 ++- tests/.gitignore | 1 + tests/Makefile | 49 +++++++++--- tests/test-x86-cpu.c | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/vl-stub.c | 15 ++++ tests/x86-stub.c | 165 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 437 insertions(+), 13 deletions(-) create mode 100644 tests/test-x86-cpu.c create mode 100644 tests/vl-stub.c create mode 100644 tests/x86-stub.c -- 2.1.0