]> git.proxmox.com Git - mirror_qemu.git/blob - tests/data/acpi/rebuild-expected-aml.sh
s390x: Rename and use constants for short PSW address and mask
[mirror_qemu.git] / tests / data / acpi / rebuild-expected-aml.sh
1 #!/usr/bin/env bash
2
3 #
4 # Rebuild expected AML files for acpi unit-test
5 #
6 # Copyright (c) 2013 Red Hat Inc.
7 #
8 # Authors:
9 # Marcel Apfelbaum <marcel.a@redhat.com>
10 # Igor Mammedov <imammedo@redhat.com>
11 #
12 # This work is licensed under the terms of the GNU GPLv2.
13 # See the COPYING.LIB file in the top-level directory.
14
15 qemu_bins="x86_64-softmmu/qemu-system-x86_64 aarch64-softmmu/qemu-system-aarch64"
16
17 if [ ! -e "tests/qtest/bios-tables-test" ]; then
18 echo "Test: bios-tables-test is required! Run make check before this script."
19 echo "Run this script from the build directory."
20 exit 1;
21 fi
22
23 for qemu in $qemu_bins; do
24 if [ ! -e $qemu ]; then
25 echo "Run 'make' to build the following QEMU executables: $qemu_bins"
26 echo "Also, run this script from the build directory."
27 exit 1;
28 fi
29 TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/qtest/bios-tables-test
30 done
31
32 eval `grep SRC_PATH= config-host.mak`
33
34 echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h
35
36 echo "The files were rebuilt and can be added to git."