summaryrefslogtreecommitdiff
path: root/util/testing
diff options
context:
space:
mode:
authorAlex Thiessen <alex.thiessen.de+coreboot@gmail.com>2018-01-02 17:40:55 +0000
committerPatrick Georgi <pgeorgi@google.com>2018-11-15 09:07:05 +0000
commit15aad88404da3a6dfcabcfc04a9c41bec89e3cc9 (patch)
treed26e862466987279ecc86131b102bb04a9217747 /util/testing
parentc9826d79347256b7efd65075740fbf2ae9f48812 (diff)
downloadcoreboot-15aad88404da3a6dfcabcfc04a9c41bec89e3cc9.tar.xz
util/gitconfig: Add timeout test
Add a `util/gitconfig/test` subdirectory which will contain tests to run as executable files, add a helper script. Add a timeout test that verifies that gitconfig completes in under two seconds (typical run time is ~30 ms). Add gitconfig tests to the `testing` Makefile under the `test-tools` target. Change-Id: Id46f905b9f782e67be97a65d10045c3345dc996b Signed-off-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com> Reviewed-on: https://review.coreboot.org/23280 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/testing')
-rw-r--r--util/testing/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc
index 595e8e3bc3..dddb76590f 100644
--- a/util/testing/Makefile.inc
+++ b/util/testing/Makefile.inc
@@ -123,6 +123,12 @@ test-tools:
$(MAKE) -C util/romcc all test -j $(CPUS) V=$(V) Q=$(Q)
echo "Testing broadcom/secimage"
$(MAKE) -C util/broadcom/secimage test
+ @echo "Running gitconfig tests"
+ @for test in $$(find util/gitconfig/test -maxdepth 1 \
+ -type f -executable); do \
+ echo "$${test}"; \
+ "$${test}" || exit $${?}; \
+ done
test-cleanup:
rm -rf coreboot-builds coreboot-builds-chromeos