We've had an errata framework merged in for a while, but it hasn't been getting used (at least not upstream). This series extends it to allow run script environment provided and host kernel version based generated errata variables to be automatically provided to unit tests. It then changes a couple arm unit tests to use the errata framework, now that it's more useful. The benefit of this over always using the 'nodefault' group is that once a host has been patched the unit test will automatically start running as a regression test - no need to manually run it, meaning no concern that it will likely never actually be run... v2: - apply a couple good bash suggestions from Laurent - apply some debatable bashisms for string manipulation, which swaps readability for reduced pipes... [me] Andrew Jones (9): arch-run: introduce initrd_create arch-run: provide errata from run env x86/run: source config.mak arch-run: generate errata when no environ is provided mkstandalone: provide errata to tests errata: add ERRATA_FORCE README: add section on guarding unsafe tests AArch32: apply errata framework to unsafe pmccntr64 test arm/arm64: apply errata framework to unsafe cpu-on test README.md | 34 +++++++++++++++++++++ arm/pmu.c | 26 +++++++++++----- arm/psci.c | 7 ++++- arm/run | 5 ++-- arm/unittests.cfg | 2 +- configure | 12 ++++++++ errata.txt | 7 +++++ lib/errata.h | 21 +++++++++++-- powerpc/run | 5 ++-- run_tests.sh | 2 ++ scripts/arch-run.bash | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ scripts/mkstandalone.sh | 6 ++++ x86/run | 14 +++++++-- 13 files changed, 201 insertions(+), 19 deletions(-) create mode 100644 errata.txt -- 2.9.4