de016a17f2
tests: Move SKIP_TEST macro to common header
...
BUG=None
BRANCH=None
TEST=None
Change-Id: I6cca635212867dad5a8e391a46b1d943530c539a
Signed-off-by: Evan Benn <evanbenn@chromium.org >
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69621
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org >
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org >
Tested-by: build bot (Jenkins) <no-reply@coreboot.org >
2022-11-28 11:42:07 +00:00
a30be92ff3
tests: Guard Linux-specific linux/spidev.h header file
...
This allows unit tests to build on non-Linux platforms.
BUG=b:237606255
TEST=unit tests compile on two environments:
1) FreeBSD 13.1-RELEASE-p2 GENERIC amd64
2) Debian 5.17.11 x86_64 GNU/Linux
Change-Id: Icdb1b0cb29c5d62187153788ad5e0e631e8d0b62
TICKET: https://ticket.coreboot.org/issues/411
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org >
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67311
Reviewed-by: Angel Pons <th3fanbus@gmail.com >
Reviewed-by: Felix Singer <felixsinger@posteo.net >
Reviewed-by: Thomas Heijligen <src@posteo.de >
Tested-by: build bot (Jenkins) <no-reply@coreboot.org >
2022-09-12 12:44:19 +00:00
4adfd99d78
tests: Add function to test programmer init error paths
...
New function tests an error path for programmer initialisation,
and expects programmer init to fail with given error code.
BUG=b:181803212
TEST=ninja test
Change-Id: Icc59396e604d74442852b4bbd575440df3347c3f
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org >
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66507
Tested-by: build bot (Jenkins) <no-reply@coreboot.org >
Reviewed-by: Felix Singer <felixsinger@posteo.net >
Reviewed-by: Thomas Heijligen <src@posteo.de >
2022-08-10 23:53:00 +00:00
2aafc1fda5
tests: Add lifecycle function prototypes into lifecycle.h header
...
Lifecycle functions will be used in all lifecycle tests and need to
be available by including lifecycle.h
BUG=b:237606255
TEST=ninja test
Change-Id: Ic4e9defe16c535c9384c1304c1cad2f5b84294c9
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org >
Reviewed-on: https://review.coreboot.org/c/flashrom/+/65542
Tested-by: build bot (Jenkins) <no-reply@coreboot.org >
Reviewed-by: Felix Singer <felixsinger@posteo.net >
Reviewed-by: Thomas Heijligen <src@posteo.de >
2022-07-10 22:28:23 +00:00
f41465d440
tests: Create lifecycle.h and gather includes and macro there
...
New header file lifecycle.h need to gather all things shared among
lifecycle tests.
This is one step to the goal of splitting lifecycle tests into
separate per-programmer file.
BUG=b:237606255
TEST=ninja test
Change-Id: I93d0db943d9c96e2c36e9f7dce5c885c959745a0
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org >
Reviewed-on: https://review.coreboot.org/c/flashrom/+/65541
Tested-by: build bot (Jenkins) <no-reply@coreboot.org >
Reviewed-by: Felix Singer <felixsinger@posteo.net >
Reviewed-by: Thomas Heijligen <src@posteo.de >
2022-07-10 22:27:59 +00:00