[PATCH 00/30] acpitables + fwts-test: re-organise tests

Colin King colin.king at canonical.com
Thu Jun 18 08:49:12 UTC 2015


From: Colin Ian King <colin.king at canonical.com>

The ACPI acpitables tests need re-organising into individual acpi
specific table tests, this provides better granularity of testing
allowing users to test just one specific table test instead of many
at one go if desired.

This re-organisation set of patches breaks acpitables into seperate
tests.  The 2nd part of this patch series adds fwts-tests for the
individual tests and cleans up old crufty acpitable tests in the
process.

I've attempted to add two tests per acpi table, a "good" know test
reference table and a "bad" corrupted table that will trip errors.

Colin Ian King (30):
  acpi: acpitables: remove ECDT test as we now have a full ECDT test
  acpi: re-orgainise HPET tests #1
  acpi: re-orgainise HPET tests #2
  acpi: move MADT test from acpitables into new MADT test
  acpi: move GTDT test from acpitables into new GTDT test
  acpi: move XSDT test from acpitables into new XSDT test
  acpi: move RSDP test from acpitables into new RSDP test
  acpi: move RSDT test from acpitables into new RSDT test
  acpi: acpitables: remove no-op MCFG test
  acpi: move SBST test from acpitables into new SBST test
  acpi: move FADT test from acpitables into existing FADT test
  acpi: acpitables: remove redudant acpi table checking
  fwts-test: acpitables-0001: update to match changes in acpitables test
  acpi: allow various ACPI table tests to run without root access
  fwts-test: update arg-show-tests-* to be in sync with acpitable
    changes
  add MADT specific test, replaces old acpitables-0002 test
  fwts-test: add RSDT specific test, replaces old acpitables-0006 test
  fwts-test: add XSDT specific test, replaces old acpitables-0007 test
  lib: fwts_acpi_tables: fully pad out fixed up ACPI OEM IDs
  fwts-test: Add BERT test
  fwts-test: Add BOOT test
  fwts-test: Add DBG2 test
  fwts-test: Add DBGP test
  fwts-test: Add HEST test
  fwts-test: Add SBST test
  fwts-test: Add SLIT test
  fwts-test: Add SRAT test
  acpi: spcr: add missing white space in error messages
  fwts-test: Add SPCR test
  fwst-test: remove old redundant acpitables test

 Makefile.am                                        |   33 +-
 fwts-test/acpitables-0001/acpitables-0001.log      |   52 +-
 fwts-test/acpitables-0002/acpidump-0001.log        |   22 -
 fwts-test/acpitables-0002/acpidump-0002.log        |   13 -
 fwts-test/acpitables-0002/acpitables-0001.log      |   25 -
 fwts-test/acpitables-0002/acpitables-0002.log      |   40 -
 fwts-test/acpitables-0002/test-0001.sh             |   17 -
 fwts-test/acpitables-0002/test-0002.sh             |   17 -
 fwts-test/acpitables-0003/acpidump-0001.log        |   23 -
 fwts-test/acpitables-0003/acpitables-0001.log      |   87 -
 fwts-test/acpitables-0003/test-0001.sh             |   17 -
 fwts-test/acpitables-0004/acpidump-0001.log        |   11 -
 fwts-test/acpitables-0004/acpitables-0001.log      |   35 -
 fwts-test/acpitables-0004/test-0001.sh             |   17 -
 fwts-test/acpitables-0005/test-0001.sh             |   17 -
 fwts-test/acpitables-0006/acpidump-0001.log        |   14 -
 fwts-test/acpitables-0006/acpitables-0001.log      |  166 -
 fwts-test/acpitables-0006/test-0001.sh             |   17 -
 fwts-test/acpitables-0007/acpidump-0001.log        |   17 -
 fwts-test/acpitables-0007/acpitables-0001.log      |  134 -
 fwts-test/acpitables-0007/test-0001.sh             |   17 -
 fwts-test/acpitables-0008/acpidump-0001.log        |    5 -
 fwts-test/acpitables-0008/acpitables-0001.log      |   22 -
 fwts-test/acpitables-0008/test-0001.sh             |   17 -
 .../arg-show-tests-0001/arg-show-tests-0001.log    |   24 +-
 .../arg-show-tests-full-0001.log                   |   42 +-
 fwts-test/arg-table-path-0001/acpidump-0001.log    |    6 +-
 fwts-test/bert-0001/acpidump-0001.log              |   29 +
 fwts-test/bert-0001/acpidump-0002.log              |   29 +
 fwts-test/bert-0001/bert-0001.log                  |   16 +
 fwts-test/bert-0001/bert-0002.log                  |   15 +
 fwts-test/bert-0001/test-0001.sh                   |   17 +
 fwts-test/bert-0001/test-0002.sh                   |   17 +
 fwts-test/boot-0001/acpidump-0001.log              |   29 +
 fwts-test/boot-0001/acpidump-0002.log              |   29 +
 fwts-test/boot-0001/boot-0001.log                  |   17 +
 fwts-test/boot-0001/boot-0002.log                  |   10 +
 fwts-test/boot-0001/test-0001.sh                   |   17 +
 fwts-test/boot-0001/test-0002.sh                   |   17 +
 fwts-test/checksum-0001/checksum-0001.log          |    2 +-
 fwts-test/checksum-0001/checksum-0003.log          |    2 +-
 fwts-test/checksum-0001/checksum-0004.log          |    2 +-
 fwts-test/dbg2-0001/acpidump-0001.log              | 3711 ++++++++++++++++++++
 fwts-test/dbg2-0001/acpidump-0002.log              | 3711 ++++++++++++++++++++
 fwts-test/dbg2-0001/dbg2-0001.log                  |   34 +
 fwts-test/dbg2-0001/dbg2-0002.log                  |   49 +
 fwts-test/dbg2-0001/test-0001.sh                   |   17 +
 fwts-test/dbg2-0001/test-0002.sh                   |   17 +
 fwts-test/dbgp-0001/acpidump-0001.log              |   30 +
 fwts-test/dbgp-0001/acpidump-0002.log              |   30 +
 fwts-test/dbgp-0001/dbgp-0001.log                  |   22 +
 fwts-test/dbgp-0001/dbgp-0002.log                  |   28 +
 fwts-test/dbgp-0001/test-0001.sh                   |   17 +
 fwts-test/dbgp-0001/test-0002.sh                   |   17 +
 fwts-test/hest-0001/acpidump-0001.log              |   38 +
 fwts-test/hest-0001/acpidump-0002.log              |   38 +
 fwts-test/hest-0001/hest-0001.log                  |   69 +
 fwts-test/hest-0001/hest-0002.log                  |   86 +
 fwts-test/hest-0001/test-0001.sh                   |   17 +
 fwts-test/hest-0001/test-0002.sh                   |   17 +
 fwts-test/madt-0001/acpidump-0001.log              |   22 +
 fwts-test/madt-0001/acpidump-0002.log              |   13 +
 fwts-test/madt-0001/madt-0001.log                  |   10 +
 fwts-test/madt-0001/madt-0002.log                  |   33 +
 fwts-test/madt-0001/test-0001.sh                   |   17 +
 fwts-test/madt-0001/test-0002.sh                   |   17 +
 fwts-test/rsdp-0001/acpidump-0001.log              |   37 +
 fwts-test/rsdp-0001/rsdp.log                       |    9 +
 fwts-test/rsdp-0001/test-0001.sh                   |   17 +
 fwts-test/rsdt-0001/acpidump-0001.log              |   14 +
 fwts-test/rsdt-0001/rsdt-0001.log                  |  153 +
 fwts-test/rsdt-0001/test-0001.sh                   |   17 +
 fwts-test/sbst-0001/acpidump-0001.log              |   29 +
 fwts-test/sbst-0001/acpidump-0002.log              |   29 +
 fwts-test/sbst-0001/sbst-0001.log                  |    9 +
 fwts-test/sbst-0001/sbst-0002.log                  |   13 +
 fwts-test/sbst-0001/test-0001.sh                   |   17 +
 fwts-test/sbst-0001/test-0002.sh                   |   17 +
 fwts-test/slit-0001/acpidump-0001.log              |   33 +
 fwts-test/slit-0001/acpidump-0002.log              |   33 +
 fwts-test/slit-0001/slit-0001.log                  |   12 +
 fwts-test/slit-0001/slit-0002.log                  |   37 +
 fwts-test/slit-0001/test-0001.sh                   |   17 +
 fwts-test/slit-0001/test-0002.sh                   |   17 +
 fwts-test/spcr-0001/acpidump-0001.log              |   32 +
 fwts-test/spcr-0001/acpidump-0002.log              |   32 +
 fwts-test/spcr-0001/spcr-0001.log                  |   13 +
 fwts-test/spcr-0001/spcr-0002.log                  |   24 +
 fwts-test/spcr-0001/test-0001.sh                   |   17 +
 fwts-test/spcr-0001/test-0002.sh                   |   17 +
 fwts-test/srat-0001/acpidump-0001.log              |   41 +
 fwts-test/srat-0001/acpidump-0002.log              |   41 +
 fwts-test/srat-0001/srat-0001.log                  |   90 +
 fwts-test/srat-0001/srat-0002.log                  |  100 +
 fwts-test/srat-0001/test-0001.sh                   |   17 +
 fwts-test/srat-0001/test-0002.sh                   |   17 +
 fwts-test/xsdt-0001/acpidump-0001.log              |   17 +
 fwts-test/xsdt-0001/test-0001.sh                   |   17 +
 fwts-test/xsdt-0001/xsdt.log                       |  121 +
 src/Makefile.am                                    |    8 +-
 src/acpi/acpitables/acpitables.c                   |  740 +---
 src/acpi/bert/bert.c                               |    2 +-
 src/acpi/boot/boot.c                               |    2 +-
 src/acpi/dbg2/dbg2.c                               |    2 +-
 src/acpi/dbgp/dbgp.c                               |    2 +-
 src/acpi/ecdt/ecdt.c                               |    2 +-
 src/acpi/fadt/fadt.c                               |  314 +-
 src/acpi/gtdt/gtdt.c                               |  248 ++
 src/acpi/hest/hest.c                               |    2 +-
 src/acpi/hpet/hpet.c                               |  457 +++
 src/acpi/madt/madt.c                               |  338 ++
 src/acpi/rsdp/rsdp.c                               |   96 +
 src/acpi/rsdt/rsdt.c                               |   85 +
 src/acpi/sbst/sbst.c                               |   95 +
 src/acpi/slit/slit.c                               |    2 +-
 src/acpi/spcr/spcr.c                               |    8 +-
 src/acpi/spmi/spmi.c                               |    2 +-
 src/acpi/srat/srat.c                               |    2 +-
 src/acpi/xsdt/xsdt.c                               |   85 +
 src/hpet/hpet_check/hpet_check.c                   |  443 ---
 src/lib/src/fwts_acpi_tables.c                     |    8 +-
 121 files changed, 11250 insertions(+), 2014 deletions(-)
 delete mode 100644 fwts-test/acpitables-0002/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0002/acpidump-0002.log
 delete mode 100644 fwts-test/acpitables-0002/acpitables-0001.log
 delete mode 100644 fwts-test/acpitables-0002/acpitables-0002.log
 delete mode 100755 fwts-test/acpitables-0002/test-0001.sh
 delete mode 100755 fwts-test/acpitables-0002/test-0002.sh
 delete mode 100644 fwts-test/acpitables-0003/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0003/acpitables-0001.log
 delete mode 100755 fwts-test/acpitables-0003/test-0001.sh
 delete mode 100644 fwts-test/acpitables-0004/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0004/acpitables-0001.log
 delete mode 100755 fwts-test/acpitables-0004/test-0001.sh
 delete mode 100755 fwts-test/acpitables-0005/test-0001.sh
 delete mode 100644 fwts-test/acpitables-0006/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0006/acpitables-0001.log
 delete mode 100755 fwts-test/acpitables-0006/test-0001.sh
 delete mode 100644 fwts-test/acpitables-0007/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0007/acpitables-0001.log
 delete mode 100755 fwts-test/acpitables-0007/test-0001.sh
 delete mode 100644 fwts-test/acpitables-0008/acpidump-0001.log
 delete mode 100644 fwts-test/acpitables-0008/acpitables-0001.log
 delete mode 100755 fwts-test/acpitables-0008/test-0001.sh
 create mode 100644 fwts-test/bert-0001/acpidump-0001.log
 create mode 100644 fwts-test/bert-0001/acpidump-0002.log
 create mode 100644 fwts-test/bert-0001/bert-0001.log
 create mode 100644 fwts-test/bert-0001/bert-0002.log
 create mode 100755 fwts-test/bert-0001/test-0001.sh
 create mode 100755 fwts-test/bert-0001/test-0002.sh
 create mode 100644 fwts-test/boot-0001/acpidump-0001.log
 create mode 100644 fwts-test/boot-0001/acpidump-0002.log
 create mode 100644 fwts-test/boot-0001/boot-0001.log
 create mode 100644 fwts-test/boot-0001/boot-0002.log
 create mode 100755 fwts-test/boot-0001/test-0001.sh
 create mode 100755 fwts-test/boot-0001/test-0002.sh
 create mode 100644 fwts-test/dbg2-0001/acpidump-0001.log
 create mode 100644 fwts-test/dbg2-0001/acpidump-0002.log
 create mode 100644 fwts-test/dbg2-0001/dbg2-0001.log
 create mode 100644 fwts-test/dbg2-0001/dbg2-0002.log
 create mode 100755 fwts-test/dbg2-0001/test-0001.sh
 create mode 100755 fwts-test/dbg2-0001/test-0002.sh
 create mode 100644 fwts-test/dbgp-0001/acpidump-0001.log
 create mode 100644 fwts-test/dbgp-0001/acpidump-0002.log
 create mode 100644 fwts-test/dbgp-0001/dbgp-0001.log
 create mode 100644 fwts-test/dbgp-0001/dbgp-0002.log
 create mode 100755 fwts-test/dbgp-0001/test-0001.sh
 create mode 100755 fwts-test/dbgp-0001/test-0002.sh
 create mode 100644 fwts-test/hest-0001/acpidump-0001.log
 create mode 100644 fwts-test/hest-0001/acpidump-0002.log
 create mode 100644 fwts-test/hest-0001/hest-0001.log
 create mode 100644 fwts-test/hest-0001/hest-0002.log
 create mode 100755 fwts-test/hest-0001/test-0001.sh
 create mode 100755 fwts-test/hest-0001/test-0002.sh
 create mode 100644 fwts-test/madt-0001/acpidump-0001.log
 create mode 100644 fwts-test/madt-0001/acpidump-0002.log
 create mode 100644 fwts-test/madt-0001/madt-0001.log
 create mode 100644 fwts-test/madt-0001/madt-0002.log
 create mode 100755 fwts-test/madt-0001/test-0001.sh
 create mode 100755 fwts-test/madt-0001/test-0002.sh
 create mode 100644 fwts-test/rsdp-0001/acpidump-0001.log
 create mode 100644 fwts-test/rsdp-0001/rsdp.log
 create mode 100755 fwts-test/rsdp-0001/test-0001.sh
 create mode 100644 fwts-test/rsdt-0001/acpidump-0001.log
 create mode 100644 fwts-test/rsdt-0001/rsdt-0001.log
 create mode 100755 fwts-test/rsdt-0001/test-0001.sh
 create mode 100644 fwts-test/sbst-0001/acpidump-0001.log
 create mode 100644 fwts-test/sbst-0001/acpidump-0002.log
 create mode 100644 fwts-test/sbst-0001/sbst-0001.log
 create mode 100644 fwts-test/sbst-0001/sbst-0002.log
 create mode 100755 fwts-test/sbst-0001/test-0001.sh
 create mode 100755 fwts-test/sbst-0001/test-0002.sh
 create mode 100644 fwts-test/slit-0001/acpidump-0001.log
 create mode 100644 fwts-test/slit-0001/acpidump-0002.log
 create mode 100644 fwts-test/slit-0001/slit-0001.log
 create mode 100644 fwts-test/slit-0001/slit-0002.log
 create mode 100755 fwts-test/slit-0001/test-0001.sh
 create mode 100755 fwts-test/slit-0001/test-0002.sh
 create mode 100644 fwts-test/spcr-0001/acpidump-0001.log
 create mode 100644 fwts-test/spcr-0001/acpidump-0002.log
 create mode 100644 fwts-test/spcr-0001/spcr-0001.log
 create mode 100644 fwts-test/spcr-0001/spcr-0002.log
 create mode 100755 fwts-test/spcr-0001/test-0001.sh
 create mode 100755 fwts-test/spcr-0001/test-0002.sh
 create mode 100644 fwts-test/srat-0001/acpidump-0001.log
 create mode 100644 fwts-test/srat-0001/acpidump-0002.log
 create mode 100644 fwts-test/srat-0001/srat-0001.log
 create mode 100644 fwts-test/srat-0001/srat-0002.log
 create mode 100755 fwts-test/srat-0001/test-0001.sh
 create mode 100755 fwts-test/srat-0001/test-0002.sh
 create mode 100644 fwts-test/xsdt-0001/acpidump-0001.log
 create mode 100755 fwts-test/xsdt-0001/test-0001.sh
 create mode 100644 fwts-test/xsdt-0001/xsdt.log
 create mode 100644 src/acpi/gtdt/gtdt.c
 create mode 100644 src/acpi/hpet/hpet.c
 create mode 100644 src/acpi/madt/madt.c
 create mode 100644 src/acpi/rsdp/rsdp.c
 create mode 100644 src/acpi/rsdt/rsdt.c
 create mode 100644 src/acpi/sbst/sbst.c
 create mode 100644 src/acpi/xsdt/xsdt.c
 delete mode 100644 src/hpet/hpet_check/hpet_check.c

-- 
2.1.4




More information about the fwts-devel mailing list