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 context with the workspace,
/tmp and $HOME/.ccache writable, everything else read-only and
It should return 0 on success, anything else on failure, as is normal
for UNIX processes.
Signed-off-by: Patrick Georgi <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
Reviewed-by: Edward O'Callaghan <firstname.lastname@example.org>
diff --git a/test_build.sh b/test_build.sh
new file mode 100755
@@ -0,0 +1,8 @@
+make CONFIG_EVERYTHING=yes WARNERROR=yes
+(cd out && ninja)
+(cd out && ninja test)