target/mips: Remove XBurst Media eXtension Unit dead code
[qemu/ar7.git] / tests / data / acpi / rebuild-expected-aml.sh
blobfc787705446fb19aef46f3964195c778e65614c3
1 #!/usr/bin/env bash
4 # Rebuild expected AML files for acpi unit-test
6 # Copyright (c) 2013 Red Hat Inc.
8 # Authors:
9 # Marcel Apfelbaum <marcel.a@redhat.com>
10 # Igor Mammedov <imammedo@redhat.com>
12 # This work is licensed under the terms of the GNU GPLv2.
13 # See the COPYING.LIB file in the top-level directory.
15 qemu_bins="./qemu-system-x86_64 ./qemu-system-aarch64"
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;
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;
29 TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/qtest/bios-tables-test
30 done
32 eval `grep SRC_PATH= config-host.mak`
34 old_allowed_dif=`grep -v -e 'List of comma-separated changed AML files to ignore' ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h`
36 echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h
38 echo "The files were rebuilt and can be added to git."
39 echo "You can use ${SRC_PATH}/tests/data/acpi/disassemle-aml.sh to disassemble them to ASL."
41 if [ -z "$old_allowed_dif" ]; then
42 echo "Note! Please do not commit expected files with source changes"
43 echo "Note! Please follow the process documented in ${SRC_PATH}/tests/qtest/bios-tables-test.c"