Johannes Schauer Marin Rodrigues
71a9a2e7a9
tests/include-deb-file: run in all modes
1 year ago
Johannes Schauer Marin Rodrigues
901d017099
tests: do not run debug and verbose tests with variant standards for arches affected by #1031276
2 years ago
Johannes Schauer Marin Rodrigues
a184cc003c
tests: run verbose and debug tests with --variant=standard for maximum output
2 years ago
Johannes Schauer Marin Rodrigues
dd774b4f20
tests: skip debootstrap tests variant - on oldstable because of #917773
2 years ago
Johannes Schauer Marin Rodrigues
db2be70f88
tests: split out creation of mmdebstrap chroot into its own test to avoid running the same thing multiple times and speed up tests
2 years ago
Johannes Schauer Marin Rodrigues
5471b372e2
coverage.txt: mark two more tests Needs-APT-Config: true
2 years ago
Johannes Schauer Marin Rodrigues
70092c49e8
coverage.txt: #1030638 got fixed
2 years ago
Johannes Schauer Marin Rodrigues
3c0b992d94
coverage.txt: fakechroot bug #1023286 is not fixed in testing yet
2 years ago
Johannes Schauer Marin Rodrigues
2837f5b5d3
coverage.py: support USE_HOST_APT_CONFIG and new Needs-APT-Config field
2 years ago
Johannes Schauer Marin Rodrigues
fdbb66f75a
coverage.txt: skip check-for-bit-by-bit-identical-format-output in variant standard on armel, armhf and mipsel because of #1031276
2 years ago
Johannes Schauer Marin Rodrigues
b3810b0fcd
tests/as-debootstrap-unshare-wrapper: run in variants minbase and important
2 years ago
Johannes Schauer Marin Rodrigues
4c5097f59b
skip check-for-bit-by-bit-identical-format-output on 32bit arches because of #1030638
2 years ago
Johannes Schauer Marin Rodrigues
5e07567d5a
move running debootstrap from make_mirror.sh to a test case
2 years ago
Johannes Schauer Marin Rodrigues
b18849caac
Assume that we can always run unshare
...
With mount --rbind we can bind-mount /proc in a privileged docker
container as it is used by salsaci.
2 years ago
Johannes Schauer Marin Rodrigues
4c64adf6ee
add tests/auto-mode-as-normal-user
2 years ago
Johannes Schauer Marin Rodrigues
a2d5573749
tests: drop qemu requirements for tests that only use it to create a user by defaulting to SUDO_USER
2 years ago
Johannes Schauer Marin Rodrigues
f737cce3f1
Support creating a fakechroot with merged-/usr on an unmerged-/usr system
...
Thanks: Helmut Grohne for finding this issue and help interating this
2 years ago
Johannes Schauer Marin Rodrigues
c738e96752
allow empty sources.list entries
2 years ago
Johannes Schauer Marin Rodrigues
f27ed490d6
Do not split --include values again in run_download and run_install
...
Closes : #1028977
2 years ago
Johannes Schauer Marin Rodrigues
cc5ea8c0c7
tests/chrootless: now that all of essential is supported, test everything
2 years ago
Johannes Schauer Marin Rodrigues
2b832e0128
add jessie-or-older extract hook
2 years ago
Johannes Schauer Marin Rodrigues
ccd8919e67
add tests/unshare-include-deb
2 years ago
Johannes Schauer Marin Rodrigues
ea146ad108
add undocumented --chrooted-*-hook calling pivot_root in unshare mode
2 years ago
Johannes Schauer Marin Rodrigues
d29f9195d7
coverage.txt: add more requirements found by running tests on salsa ci and debci
2 years ago
Johannes Schauer Marin Rodrigues
822f8eafec
tests: test chrootless essential and systemd-sysv with fakeroot and foreign
2 years ago
Johannes Schauer Marin Rodrigues
a207ac020b
remove test merged-usr-via-setup-hook as merged-/usr is now the default
2 years ago
Johannes Schauer Marin Rodrigues
a16937e3e4
coverage.py: factor out coverage.txt parsing
2 years ago
Johannes Schauer Marin Rodrigues
410c5fcb24
fix --include option for files and add test case
2 years ago
Johannes Schauer Marin Rodrigues
add9412a47
add --skip=chroot/mount and --skip=chroot/mount/dev, --skip=chroot/mount/proc, --skip=chroot/mount/sys
2 years ago
Johannes Schauer Marin Rodrigues
e61e352f67
add --skip=chroot/start-stop-daemon and --skip=chroot/policy-rc.d
2 years ago
Johannes Schauer Marin Rodrigues
902bc55c4d
tarfilter --idshift now provides taridshift
2 years ago
Johannes Schauer Marin Rodrigues
226f86fea9
fix mmdebstrap hanging if apt in download step failed ( closes : #1017795 )
2 years ago
Johannes Schauer Marin Rodrigues
5533b25255
tests/chrootless-essential: enable again now that glibc is fixed
2 years ago
Johannes Schauer Marin Rodrigues
d82afec5de
error out if stdout is a tty
2 years ago
Johannes Schauer Marin Rodrigues
009089ee8a
Mount a new instance of /dev/pts in the chroot
...
Before, we bind-mounted /dev/ptmx and /dev/pts from the host into the
chroot. This will make posix_openpt() fail with 'No such file or
directory'. The ability to create pseudo terminals is important for apt
(which will throw a warning otherwise) or running script(1) or source
package testsuites like for src:util-linux. This functionality is
restored by mounting a new devpts instance to /dev/pts and making
/dev/ptmx a symlink to /dev/pts/ptmx. Mounting with ptmxmode=666 is
required such that also non-root users in unshare mode are able to
create pseudo terminals. See also:
https://www.kernel.org/doc/Documentation/filesystems/devpts.txt
https://salsa.debian.org/debian/schroot/-/merge_requests/2
https://bugs.debian.org/856877
https://bugs.debian.org/817236
2 years ago
Johannes Schauer Marin Rodrigues
793d8bb561
add forgotten test create-directory-dry-run
2 years ago
Johannes Schauer Marin Rodrigues
d96e85fddd
file-mirror-automount hook now supports modes that cannot mount (like fakechroot) by copying the repo into the chroot
2 years ago
Johannes Schauer Marin Rodrigues
e4ef326b59
Only set up FAKECHROOT_CMD_SUBST for paths in PATH containing the original binary
...
If FAKECHROOT_CMD_SUBST sets up wrong substitutions, then binaries
cannot be found. For example if /usr/bin/chroot is listed in
FAKECHROOT_CMD_SUBST but /usr/sbin (the actual location of the chroot
binary) is not in PATH, the command fails
2 years ago
Johannes Schauer Marin Rodrigues
4c3fddcd54
rewrite coverage.sh
...
- multiple individual shell scripts instead of one 3.5k line monster
- tests driven by Python script allowing:
* declarative test description in coverage.txt
* collecting errors instead of aborting on first error
* skipping tests
* running specific tests
2 years ago