Johannes 'josch' Schauer
29550acb88
add --interactive=never to rm call to avoid prompts for removal of write protected files in proot mode
6 years ago
Johannes 'josch' Schauer
903b318ccc
make_mirror.sh: instead of rm -r, remove temporary files explicitly to avoid desaster
6 years ago
Johannes 'josch' Schauer
4ffa7bb69b
make_mirror.sh: create temporary directory inside the cache and use hardlinks to avoid unnecessary I/O
6 years ago
Johannes 'josch' Schauer
643152ec16
run_qemu.sh: add comment with an example of how to connect to qemu serial unix socket
6 years ago
Johannes 'josch' Schauer
c670f51826
run_qemu.sh: if the run is aborted, then the last line is likely not an integer, thus compare strings instead of numbers
6 years ago
Johannes 'josch' Schauer
b3269c8809
run_null.sh: remove unused variable
6 years ago
Johannes 'josch' Schauer
b113771a81
make_mirror.sh: never leave the cache in an inconsistent state by atomically switching symlinks
6 years ago
Johannes 'josch' Schauer
8d92412380
make_mirror.sh: put double quotes around string
6 years ago
Johannes 'josch' Schauer
b6e8c9dbb7
coverage.sh: skip comparison with debootstrap unstable because of #917386 and #917407
6 years ago
Johannes 'josch' Schauer
1aec25f043
make_mirror.sh: don't run debootstrap for untested scenario
6 years ago
Johannes 'josch' Schauer
e6ce901be4
run several binfmt checks before using qemu-user mode
6 years ago
Johannes 'josch' Schauer
4a2bf62931
add --resolve-deps no-op option for sbuild-createchroot compatibility
6 years ago
Johannes 'josch' Schauer
3f29fa461a
don't die if output cannot be written to tarball and instead check error condition early
6 years ago
Johannes 'josch' Schauer
f4263ebd74
add --verbose option that prints apt and dpkg output instead of progress bars
6 years ago
Johannes 'josch' Schauer
61ad8a8e45
update --help output for --aptopt using single quotes to avoid escaping of double quotes
6 years ago
Johannes 'josch' Schauer
131a39d633
make_mirror.sh: export SOURCE_DATE_EPOCH for debootstrap
6 years ago
Johannes 'josch' Schauer
076d035f65
coverage.sh: check requirement for disk image and debootstrap tarballs before running
6 years ago
Johannes 'josch' Schauer
ef576ab389
use LC_ALL=C.UTF-8 instead of LC_ALL=C
6 years ago
Johannes 'josch' Schauer
fa3719eaeb
run_qemu.sh: use an exit trap for reporting the result and cleanup
...
This will prevent any leftover files in case of a sudden error or
ctrl+c.
6 years ago
Johannes 'josch' Schauer
97d273aaf6
disable merged usr
6 years ago
Johannes 'josch' Schauer
c8dbe5bd15
coverage.sh: account for differently ordered /etc/shells
6 years ago
Johannes 'josch' Schauer
f101057e1b
add qemu TODO item
6 years ago
Johannes 'josch' Schauer
94862ef03e
coverage.sh: make regex more precise and relax it for version numbers
6 years ago
Johannes 'josch' Schauer
b57b8de3a0
make_mirror.sh: add procps for /sbin/sysctl
6 years ago
Johannes 'josch' Schauer
2618a587a0
coverage.sh: allow running without qemu
...
On machines without kvm using qemu is not practical. Now, most tests can
be run without a container. Also add support for missing unshare, proot
and binfmt.
6 years ago
Johannes 'josch' Schauer
6634f4f49f
coverage.sh: fix status line
6 years ago
Johannes 'josch' Schauer
504e6765c8
make_mirror.sh: fix status line
6 years ago
Johannes 'josch' Schauer
b0979d1d6b
add verbose mode to test_unshare() so that it can report what went wrong
6 years ago
Johannes 'josch' Schauer
3ffc8ea35f
add FIXME comment about binfmt_misc support
6 years ago
Johannes 'josch' Schauer
f25dc399c2
run_qemu.sh: only add -enable-kvm if /dev/kvm exists
6 years ago
Johannes 'josch' Schauer
0cc9e3b44a
make_mirror.sh,run_qemu.sh: use temporary directory for temporary files instead of the current working directory
6 years ago
Johannes 'josch' Schauer
8cbc9e9a00
make_mirror.sh: add two comments for guestfish debugging
6 years ago
Johannes 'josch' Schauer
eaaa0b109d
run_qemu.sh: pass absolute path to qemu-img because otherwise the backing image will be searched relative to the overlay
6 years ago
Johannes 'josch' Schauer
ff3e66e37c
run_qemu.sh: run with set -eu
6 years ago
Johannes 'josch' Schauer
96c01a67e4
make_mirror.sh: use redirection to write tarfile
...
During the Debian autopkgtest mmdebstrap is executed as root but we
don't want the tarfile being owned by root.
6 years ago
Johannes 'josch' Schauer
f4f6200f36
make_mirror.sh: only (u)mount cover_db.img if it exists
6 years ago
Johannes 'josch' Schauer
4ef1eda200
append to $PATH instead of replacing its content
6 years ago
Johannes 'josch' Schauer
40e25ef653
coverage.sh: only run cover if coverage data exists
...
This is useful if ./coverage.sh is run with CMD=./mmdebstrap and thus
gathering coverage data is disabled.
6 years ago
Johannes 'josch' Schauer
13358fc039
coverage.sh: conditionally copy mmdebstrap to ./shared
...
- only copy if local copy is newer than the copy in ./shared
- this enables the autopkgtest to place its own version in ./shared
which will then not be overwritten
6 years ago
Johannes 'josch' Schauer
6b1a5a04ad
README.md: update section about tests
6 years ago
Johannes 'josch' Schauer
a5348c970d
release 0.3.0
6 years ago
Johannes 'josch' Schauer
972b207508
implement 'extract' variant
6 years ago
Johannes 'josch' Schauer
16d2a4a8d9
allow empty lost+found directory in target directory
6 years ago
Johannes 'josch' Schauer
1730a17286
add two code comments
6 years ago
Johannes 'josch' Schauer
2949691591
When packaging the tarball with proot, exclude /host-rootfs
6 years ago
Johannes 'josch' Schauer
1890e22b14
do not make the default mirror for the native arch only. The sane expectation is, that the default mirror is for any architecture.
6 years ago
Johannes 'josch' Schauer
cc7dddb1b3
re-installing packages with dpkg also requires --force-depends because dpkg doesn't consider Pre-Depends
6 years ago
Johannes 'josch' Schauer
a9765a3ad2
fix Apt::Architectures architecture list
6 years ago
Johannes 'josch' Schauer
935f5b7a66
Instead of requiring root, use qemu
...
- unprivileged creation of rootfs using guestfish
- allows full control over network, installed packages
- merged test.sh into coverage.sh
6 years ago
Johannes 'josch' Schauer
bcb6b65b72
coverage.sh: add more tests
6 years ago