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 /payloads/libpayload/Makefile.inc | |
parent | e8b6b07bfc4cca2e7554ac8fecb6ddf88f89bc0e (diff) |
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 'payloads/libpayload/Makefile.inc')
-rw-r--r-- | payloads/libpayload/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index df0f14298f..8e0a3d6f77 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -135,7 +135,7 @@ prepare: junit.xml: echo '<?xml version="1.0" encoding="utf-8"?><testsuite>' > $@.tmp - for i in $(filter-out %.old,$(wildcard configs/*)); do \ + for i in $(filter-out %.old %.unit-tests,$(wildcard configs/*)); do \ $(MAKE) clean; \ echo "Building libpayload for $$i"; \ cp "$$i" junit_config; \ @@ -158,7 +158,7 @@ junit.xml: mv $@.tmp $@ test-configs: - for config in $(filter-out %.old,$(wildcard configs/*)); do \ + for config in $(filter-out %.old %.unit-tests,$(wildcard configs/*)); do \ $(MAKE) clean; \ cp "$$config" test_config; \ echo "*** Making libpayload config $$config ***"; \ |