How can we find bugs more efficiently with regtest/aports?
This page is editable. Please add tips!
This is documented at the top of regtest/aports-setup.sh
regtest/aports-setup.sh fetch-all # git clone aports, etc.
regtest/aports-setup.sh prepare-all # runs alpine-chroot-install script
# also sets up OverlayFS dir with oils-for-unix
and
regtest/aports-setup.sh remove-all # start from scratch
_chroot (rm -r _chroot/) and don't use sudo when running the above commands.remove-all and prepare-all again.This is documented in regtest/aports-run.sh
Build package with overlayfs:
regtest/aports-run.sh build-package-overlayfs osh-as-sh userspace-rcu # can also pass 'baseline'
Add the INTERACTIVE=1 flag to drop into a shell:
INTERACTIVE=1 regtest/aports-run.sh build-package-overlayfs osh-as-sh userspace-rcu
Build a package in community, not main:
regtest/aports-run.sh build-package-overlayfs osh-as-sh R community
e.g for userspace-rcu, we get this failure:
See tests/unit/test-suite.log Please report to mathieu dot desnoyers at efficios dot com
But then you have to know to change to the right directory in the chroot, which is ~/aports/main/userspace-rcu
And then the source is unpacked to src/userspace-rcu-$VERSION
osh-0.35$ pwd
/home/udu/aports/main/userspace-rcu/src/userspace-rcu-0.15.2
Then tests/unit/test-suite.log is relative to that dir
set -x; export SHELLOPTS enables tracing across all bash (and OSH) processesThis is a feature that's specific to bash, and that OSH also has
This helped Melvin reduce bug #2416