From 15aad88404da3a6dfcabcfc04a9c41bec89e3cc9 Mon Sep 17 00:00:00 2001 From: Alex Thiessen Date: Tue, 2 Jan 2018 17:40:55 +0000 Subject: 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 Reviewed-on: https://review.coreboot.org/23280 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- util/testing/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util/testing/Makefile.inc') 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 -- cgit v1.2.3