poky/scripts
Trevor Gamblin 691f8c5fc8 buildall-qemu: automate build testing for qemu MACHINEs
buildall-qemu simplifies the process of build testing an upgraded or
patched recipe by cycling through the build steps for each available qemu
target, with desired LIBC specified by the user as an option (defaulting
to both glibc and musl if no option is provided). While building, a log
file with the name "<recipe>-buildall.log" is written, containing a PASS
or FAIL line upon completion of the build for each architecture. For now,
qemu targets are not selectable (i.e. the recipe is built for all qemu
targets found in meta/conf/machine), but this functionality can be added
in the future along with other useful options.

The log file created by buildall-qemu also includes some basic system
info (e.g. build start time, hostname, host OS, host kernel). Since it is
not guaranteed that tools such as lsb_release will be available on the
host (it isn't by default on my Fedora machine), this information is
collected manually. Additionally, the previous run's log is retained for
comparison by renaming it in the format <recipe>-buildall.log.old once a
new set of builds is triggered for the same recipe.

We've seen multiple variations of this concept in use as one-liners and
as bash functions in dotfiles, so it seemed appropriate to submit it in
script form to oe-core for everyone to use.

Sample log output:

BUILDALL-QEMU LOG FOR aspell
START TIME: 2020-02-11_19:50:02
HOSTNAME: yow-tgamblin-fedora2
HOST OS: Fedora 31 (Server Edition)
HOST KERNEL: 5.4.10-200.fc31.x86_64
===============
BUILD RESULTS:
[glibc]
PASS: qemuarmv5
PASS: qemux86
PASS: qemuppc
PASS: qemumips64
PASS: qemux86-64
PASS: qemumips
PASS: qemuarm
PASS: qemuarm64
PASS: qemuriscv64
[musl]
PASS: qemuarmv5
PASS: qemux86
PASS: qemuppc
PASS: qemumips64
PASS: qemux86-64
FAIL: qemumips
FAIL: qemuarm
FAIL: qemuarm64
FAIL: qemuriscv64
===============
PASSED: 14
FAILED: 4

(From OE-Core rev: ee64b7db6651df4ed419e3d2649b4fb2f2faf830)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-24 14:10:08 +01:00
..
contrib buildstats-plot.sh: Show spaces and underscores correctly in titles/keys 2020-03-29 12:05:31 +01:00
lib Revert "wic: Fix permissions when using exclude or include path" 2020-04-07 21:57:16 +01:00
native-intercept scripts/native-intercept: Add chgrp intercept 2019-11-14 13:21:00 +00:00
postinst-intercepts systemd: Reinstate systemd-hwdb-update.service 2020-03-31 13:58:01 +01:00
pybootchartgui scripts/pybootchartgui: Fix to work with python 3.8 2020-03-15 22:23:19 +00:00
tiny scritpts/tiny/ksize: Cleanup some python2 leftover in ksize.py 2020-03-13 11:32:10 +00:00
autobuilder-worker-prereq-tests meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
bitbake-prserv-tool meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
bitbake-whatchanged meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
buildall-qemu buildall-qemu: automate build testing for qemu MACHINEs 2020-04-24 14:10:08 +01:00
buildhistory-collect-srcrevs meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
buildhistory-diff meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
buildstats-diff scripts/buildstats-diff: Add option to filter tasks 2019-07-17 09:36:35 +01:00
combo-layer scripts/combo-layer: Fix deprecation warning 2020-02-21 09:39:00 +00:00
combo-layer-hook-default.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
combo-layer.conf.example combo-layer: partial import for '--history init' 2015-03-20 11:21:24 +00:00
cp-noerror meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
create-pull-request scripts/create-pull-request: fix putting subject containing / into cover letter 2019-07-31 13:50:46 +01:00
crosstap meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
devtool meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
gen-lockedsig-cache scripts/gen-lockedsig-cache: Only look at new format sstate objects 2020-01-06 23:54:39 +00:00
gen-site-config meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
install-buildtools scripts/install-buildtools: refactor for Python 3.4 2020-04-05 11:46:38 +01:00
lnr meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
multilib_header_wrapper.h meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-build-perf-report scripts/oe-build-perf-report: Avoid buildstats warning 2020-01-13 13:07:01 +00:00
oe-build-perf-test scripts/oe-build-perf-test: Use python3 from the environment 2019-12-15 09:10:46 +00:00
oe-buildenv-internal scripts/oe-buildenv-internal: Add pointer to scripts/install-buildtools 2020-04-01 11:44:24 +01:00
oe-check-sstate meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-depends-dot meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-find-native-sysroot meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-git-archive meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-git-proxy oe-git-proxy: fix dash "Bad substitution" 2019-09-16 23:02:44 +01:00
oe-gnome-terminal-phonehome meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-pkgdata-browser oe-pkgdata-browser: Select a matching package when a recipe is selected 2020-01-10 21:18:22 +00:00
oe-pkgdata-browser.glade oe-pkgdata-browser: Make the window 1200x900 by default 2020-01-10 21:18:22 +00:00
oe-pkgdata-util scripts/oe-pkgdata-util: Enable list-pkgs to print ordered packages 2019-11-04 13:39:05 +00:00
oe-publish-sdk meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-pylint meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-run-native oe-run-native: fix typo 2019-12-28 23:25:41 +00:00
oe-selftest oe-selftest: Implement console 'keepalive' output 2019-09-06 08:15:45 +01:00
oe-setup-builddir meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-test meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-trim-schemas meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oepydevshell-internal.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
opkg-query-helper.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
pythondeps meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
README
recipetool meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
relocate_sdk.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
resulttool meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
rootfs_rpm-extract-postinst.awk
rpm2cpio.sh rpm2cpio.sh: fix to handle newline character 2020-02-19 11:24:15 +00:00
runqemu runqemu: add QB_ROOTFS_EXTRA_OPT parameter 2020-04-24 14:10:08 +01:00
runqemu-addptable2image meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu-export-rootfs meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu-extract-sdk runqemu-extract-sdk: fix install debugfs on rootfs 2020-04-06 16:45:11 +01:00
runqemu-gen-tapdevs meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu-ifdown meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu-ifup meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu.README scripts/runqemu.README: fix typo 2017-05-18 14:01:47 +01:00
send-error-report meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
send-pull-request meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
sstate-cache-management.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
sstate-diff-machines.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
sstate-sysroot-cruft.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
sysroot-relativelinks.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
task-time meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
test-reexec meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
test-remote-image meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
verify-bashisms meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
wic wic: 'wic cp' to copy from image 2019-11-27 13:25:18 +00:00
yocto-check-layer yocto-check-layer: simple grammatical fixes 2020-03-30 12:33:29 +01:00
yocto-check-layer-wrapper meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00

This directory contains Various useful scripts for working with OE builds