diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2021-10-08 09:57:14 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-10-18 12:33:49 +0000 |
commit | 12ae850dfc10709f8c3bcf92ab7ba1397eb4ae43 (patch) | |
tree | c31b1c942ba91c67a11103695b47366580fdb3e3 /util | |
parent | e8b6b07bfc4cca2e7554ac8fecb6ddf88f89bc0e (diff) | |
download | coreboot-12ae850dfc10709f8c3bcf92ab7ba1397eb4ae43.tar.gz coreboot-12ae850dfc10709f8c3bcf92ab7ba1397eb4ae43.tar.bz2 coreboot-12ae850dfc10709f8c3bcf92ab7ba1397eb4ae43.zip |
libpayload: Add unit-tests framework and first test case
This commit adds a unit-tests framework ported from coreboot, and test
for drivers/speaker. Usage of the unit-tests framework is same as for
the coreboot one.
Change-Id: Iaa94ee4dcdc3f74af830113813df0e8fb0b31e4f
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58242
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/testing/Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index a390654045da..a9fd6488cc15 100644 --- a/util/testing/Makefile.inc +++ b/util/testing/Makefile.inc @@ -97,6 +97,7 @@ endif $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=src/soc/nvidia/tegra124/lp0 BLD=tegra124_lp0 MFLAGS= MAKEFLAGS=xcompile=$(COREBOOT_BUILD_DIR)/xcompile MAKETARGET=all junit.xml $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=src/soc/nvidia/tegra210/lp0 BLD=tegra120_lp0 MFLAGS= MAKEFLAGS=xcompile=$(COREBOOT_BUILD_DIR)/xcompile MAKETARGET=all junit.xml $(MAKE) unit-tests JUNIT_OUTPUT=y + (cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) unit-tests JUNIT_OUTPUT=y) test-basic: test-lint test-tools test-abuild test-payloads test-cleanup |