From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwBbh-0007FH-Nn for qemu-devel@nongnu.org; Thu, 26 Dec 2013 09:08:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwBbc-0008Hw-A8 for qemu-devel@nongnu.org; Thu, 26 Dec 2013 09:08:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwBbc-0008Hq-1y for qemu-devel@nongnu.org; Thu, 26 Dec 2013 09:08:08 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBQE871X016310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 26 Dec 2013 09:08:07 -0500 From: Marcel Apfelbaum Date: Thu, 26 Dec 2013 16:07:57 +0200 Message-Id: <1388066879-29290-1-git-send-email-marcel.a@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] acpi unit-test: rebuild aml files functionality List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com Acpi unit-test will fail every time the acpi tables change. The series adds a script that rebuilds the expected aml files, so the test will pass. It also validates the modifications. The acpi unit test will rebuild the aml tables if TEST_ACPI_REBUILD_AML environment variable is set. v2 -> v3: Addressed Michael S. Tsirkin's comments: - Used qemu_write_full instead of write - Some trailing space v1 -> v2: Addressed Michael S. Tsirkin's comments: - added TEST_ prefix to the environment variable - some rephrases Marcel Apfelbaum (2): acpi unit-test: added script to rebuild the expected aml files acpi unit-test: hook to rebuild expected aml files tests/acpi-test-data/rebuild-expected-aml.sh | 36 +++++++++++++++++++++++++++ tests/acpi-test.c | 37 ++++++++++++++++++++++------ 2 files changed, 66 insertions(+), 7 deletions(-) create mode 100755 tests/acpi-test-data/rebuild-expected-aml.sh -- 1.8.3.1