diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-10-28 17:29:38 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-09-29 17:04:34 +0000 |
commit | 5ac6a637b07ea05a363ede3643ff627913378a2a (patch) | |
tree | 814e336db7b38ecdf8a1fd6602203c75438a6a2a | |
parent | 05c629be2964bcee368c03d805747da15281856d (diff) | |
download | flashrom-5ac6a637b07ea05a363ede3643ff627913378a2a.tar.gz flashrom-5ac6a637b07ea05a363ede3643ff627913378a2a.tar.bz2 flashrom-5ac6a637b07ea05a363ede3643ff627913378a2a.zip |
test_build.sh: Move build test procedure to repository
Instead of hard coding the test procedure on qa.coreboot.org, allow
running a script in the repo instead. The server is already adapted
to do that, so once there's a test_build.sh file in the toplevel
directory, it's run in place of the default operation.
The content of this change mirrors the default operation exactly so
should serve as a good starting point.
The script is executed in an encapsulate[0] context with the workspace,
/tmp and $HOME/.ccache writable, everything else read-only and
network disabled.
It should return 0 on success, anything else on failure, as is normal
for UNIX processes.
[0] https://review.coreboot.org/cgit/encapsulate.git
(Backported minus the Meson support)
Change-Id: I37a8e925d1b283c3b8f87cb3d0f1ed8920f2cf95
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/46894
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62617
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67860
Reviewed-by: Felix Singer <felixsinger@posteo.net>
-rwxr-xr-x | test_build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_build.sh b/test_build.sh new file mode 100755 index 000000000..3ab5319ec --- /dev/null +++ b/test_build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +make CONFIG_EVERYTHING=yes WARNERROR=yes |