Skip to contentSkip to conversation

tests: fix acpi tables regeneration script

PATCH In review Marcel Apfelbaum 3 participants 3 messages Oct 19, 2014 – Oct 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: fix acpi tables regeneration script

Commit: 501f28ca9db08e84819b26314525b6369e7704dd
tests: rename acpi-test to bios-tables-test

modified acpi-test file from acpi-test.c to bios-tables-test.c. However, the tables regeneration script was not modified accordingly.

Fixed the test name also in rebuild-expected-aml.sh script.

---
 tests/acpi-test-data/rebuild-expected-aml.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/acpi-test-data/rebuild-expected-aml.sh +4 -3
index ab98498..e7ce2b3 100755
@@ -12,6 +12,7 @@
 # See the COPYING.LIB file in the top-level directory.
 
 qemu=
+acpi_test_path="tests/bios-tables-test"
 
 if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then
     qemu="x86_64-softmmu/qemu-system-x86_64"
@@ -23,13 +24,13 @@ else
     exit 1;
 fi
 
-if [ ! -e "tests/acpi-test" ]; then
-    echo "Test: acpi-test is required! Run make check before this script."
+if [ ! -e $acpi_test_path ]; then
+    echo "Test: $acpi_test_path is required! Run make check before this script."
     echo "Run this script from the build directory."
     exit 1;
 fi
 
-TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/acpi-test
+TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu $acpi_test_path
 
 echo "The files were rebuilt and can be added to git."
 echo "However, if new files were created, please copy them manually" \
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 8 lines · Marcel Apfelbaum

Commit: 501f28ca9db08e84819b26314525b6369e7704dd
tests: rename acpi-test to bios-tables-test

modified acpi-test file from acpi-test.c to bios-tables-test.c. However, the tables regeneration script was not modified accordingly.

Fixed the test name also in rebuild-expected-aml.sh script.

Mini PING

Thanks,
Marcel

Quoted 35 lines
---
 tests/acpi-test-data/rebuild-expected-aml.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/acpi-test-data/rebuild-expected-aml.sh +4 -3
index ab98498..e7ce2b3 100755
@@ -12,6 +12,7 @@
 # See the COPYING.LIB file in the top-level directory.
 
 qemu=
+acpi_test_path="tests/bios-tables-test"
 
 if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then
     qemu="x86_64-softmmu/qemu-system-x86_64"
@@ -23,13 +24,13 @@ else
     exit 1;
 fi
 
-if [ ! -e "tests/acpi-test" ]; then
-    echo "Test: acpi-test is required! Run make check before this script."
+if [ ! -e $acpi_test_path ]; then
+    echo "Test: $acpi_test_path is required! Run make check before this script."
     echo "Run this script from the build directory."
     exit 1;
 fi
 
-TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/acpi-test
+TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu $acpi_test_path
 
 echo "The files were rebuilt and can be added to git."
 echo "However, if new files were created, please copy them manually" \
#2 lore raw
Quoted 8 lines · Marcel Apfelbaum
Quoted 7 lines · Marcel Apfelbaum

Commit: 501f28ca9db08e84819b26314525b6369e7704dd
tests: rename acpi-test to bios-tables-test

modified acpi-test file from acpi-test.c to bios-tables-test.c. However, the tables regeneration script was not modified accordingly.

Quoted 6 lines
Quoted 1 line

Fixed the test name also in rebuild-expected-aml.sh script.

Mini PING

Thanks,
Marcel

Thanks!
I already merged an equivalent patch by Paolo.

Quoted 37 lines
Quoted 35 lines
---
 tests/acpi-test-data/rebuild-expected-aml.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/acpi-test-data/rebuild-expected-aml.sh +4 -3
index ab98498..e7ce2b3 100755
@@ -12,6 +12,7 @@
 # See the COPYING.LIB file in the top-level directory.
 
 qemu=
+acpi_test_path="tests/bios-tables-test"
 
 if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then
     qemu="x86_64-softmmu/qemu-system-x86_64"
@@ -23,13 +24,13 @@ else
     exit 1;
 fi
 
-if [ ! -e "tests/acpi-test" ]; then
-    echo "Test: acpi-test is required! Run make check before this script."
+if [ ! -e $acpi_test_path ]; then
+    echo "Test: $acpi_test_path is required! Run make check before this script."
     echo "Run this script from the build directory."
     exit 1;
 fi
 
-TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/acpi-test
+TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu $acpi_test_path
 
 echo "The files were rebuilt and can be added to git."
 echo "However, if new files were created, please copy them manually" \