diff options
author | Martin Roth <martinroth@google.com> | 2017-08-03 09:25:43 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-08-11 15:24:56 +0000 |
commit | 6c9c196f1cdf5e1a94c4ae312318dc7934508023 (patch) | |
tree | 367ccd32812298cc7a7d987762a5c651cf6471b6 /payloads | |
parent | e624e270e646a9443024428a7aefe69f6b429fbf (diff) |
copy & update test routines from what-jenkins-does
Currently the only testing we had was 'what-jenkins-does' and
'make lint'. While the lint testing is suitable for developers,
the 'what-jenkins-does' target really isn't, as it was designed
specifically for testing on jenkins.
This adds the infrastructure for basic tests that are more suitable
for the developer. Extended tests and improvements will follow.
Add the coreboot-builds directories to .gitignore.
TODO:
- Save/restore .config
- Update test-abuild to use existing COREBOOT_BUILD_DIR variable
Change-Id: I19e1256d79531112ff84e47a307f55791533806f
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20874
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Chris Ching <chingcodes@google.com>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/Makefile.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index b88cd20ea1..7787762b43 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -147,3 +147,12 @@ junit.xml: done echo "</testsuite>" >> $@.tmp mv $@.tmp $@ + +test-configs: + for config in $(filter-out %.old,$(wildcard configs/*)); do \ + $(MAKE) clean; \ + cp "$$config" test_config; \ + echo "*** Making libpayload config $$config ***"; \ + $(MAKE) olddefconfig DOTCONFIG=test_config V=$(V) Q=$(Q) ; \ + $(MAKE) V=$(V) Q=$(Q) CONFIG_LP_CCACHE=$(CONFIG_LP_CCACHE) DOTCONFIG=test_config; \ + done |