diff mbox series

[v2,08/11] acpi/tests/bits: add biosbits config file for running bios tests

Message ID 20220710170014.1673480-9-ani@anisinha.ca
State New
Headers show
Series Introduce new acpi/smbios python tests using biosbits | expand

Commit Message

Ani Sinha July 10, 2022, 5 p.m. UTC
This change adds initial biosbits config file that instructs biosbits to run
bios test suits in batch mode. Additionally acpi and smbios structures are also
dumped.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
---
 .../pytest/acpi-bits/bits-config/bits-cfg.txt  | 18 ++++++++++++++++++
 tests/pytest/acpi-bits/bits-config/meson.build | 11 +++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 tests/pytest/acpi-bits/bits-config/bits-cfg.txt
 create mode 100644 tests/pytest/acpi-bits/bits-config/meson.build
diff mbox series

Patch

diff --git a/tests/pytest/acpi-bits/bits-config/bits-cfg.txt b/tests/pytest/acpi-bits/bits-config/bits-cfg.txt
new file mode 100644
index 0000000000..8010804453
--- /dev/null
+++ b/tests/pytest/acpi-bits/bits-config/bits-cfg.txt
@@ -0,0 +1,18 @@ 
+# BITS configuration file
+[bits]
+
+# To run BITS in batch mode, set batch to a list of one or more of the
+# following keywords; BITS will then run all of the requested operations, then
+# save the log file to disk.
+#
+# test: Run the full BITS testsuite.
+# acpi: Dump all ACPI structures.
+# smbios: Dump all SMBIOS structures.
+#
+# Leave batch set to an empty string to disable batch mode.
+# batch =
+
+# Uncomment the following to run all available batch operations
+# please take a look at boot/python/init.py in bits zip file
+# to see how these options are parsed and used.
+batch = test acpi smbios
diff --git a/tests/pytest/acpi-bits/bits-config/meson.build b/tests/pytest/acpi-bits/bits-config/meson.build
new file mode 100644
index 0000000000..bbd7a940dc
--- /dev/null
+++ b/tests/pytest/acpi-bits/bits-config/meson.build
@@ -0,0 +1,11 @@ 
+config_files = ['bits-cfg.txt']
+
+copycfgfiles = custom_target('copy cfg files',
+  input : config_files,
+  output :  config_files,
+  command : ['cp', '@INPUT@', '@OUTPUT@'],
+  install : true,
+  install_dir : 'bits-config',
+  build_by_default : true)
+
+other_deps += copycfgfiles