99f82456f3
do not generate apt sources.list entry if SUITE is empty
2024-10-28 09:13:48 +01:00
d0568a2b9e
Wait for (reap) potential zombies and otherwise long-running background processes
...
Otherwise they might hog resources like /dev/null which can then not be
unmounted resulting in their mountpoints (the regular files) not being
removable and then the removal of device nodes in run_cleanup (if
mmdebstrap is run with --skip=output/dev) will fail.
Another potential solution would be to run each hook and apt invocation
in its own process namespace but this would require to remount /proc and
this in turn would require a new mount namespace as well but we'd like
to keep the mount namespace across multiple hooks...
2024-08-18 22:07:52 +02:00
3969727cc0
tests: bug #1031276 got fixed
2024-06-11 15:49:48 +02:00
84f80673f4
Revert "attempt diagnosing skip-tar-in-mknod failure 'file changed as we read it' using auditd"
...
This reverts commit 726fc38d1d
.
2024-05-15 00:23:56 +02:00
409686048b
add --format=ext4
2024-05-12 18:38:47 +02:00
726fc38d1d
attempt diagnosing skip-tar-in-mknod failure 'file changed as we read it' using auditd
2024-03-27 05:49:46 +01:00
a7586e55d1
coverage.txt: exclude create-foreign-tarball from arm64 in fakechroot mode because usrmerge postinst under fakechroot wants to copy /lib/ld-linux-x86-64.so.2 (which does not exist) instead of /lib64/ld-linux-x86-64.so.2
2024-02-01 05:52:46 +01:00
4bcd6fa015
rename install-libmagic-mgc-on-arm64 test and allow running it on both amd64 and arm64
2024-01-30 07:08:22 +01:00
366d2ffbec
rename create-arm64-tarball test and allow running it on both amd64 and arm64
2024-01-25 10:52:52 +01:00
134fc15634
rename include-libmagic-mgc-arm64 tests and allow running them on both amd64 and arm64
2024-01-25 09:49:03 +01:00
f2020cf3ed
coverage.txt: disable merged-fakechroot-inside-unmerged-chroot on testing and unstable
2023-10-29 23:14:29 +01:00
cb500ef6ba
add --skip=tar-in/mknod,copy-in/mknod,sync-in/mknod
2023-10-23 11:47:27 +02:00
bf41b91e6f
Properly implement --skip=output/dev and add --skip=output/mknod
...
- the first implementation of --skip=output/dev was broken in root mode
- add tests
- add documentation
2023-09-28 07:53:43 +02:00
8bf8da5e8e
coverage.txt: verbose and debug tests rely on variant:standard chroots
2023-09-27 07:41:26 +02:00
5a9123aa11
testsuite changes for bookworm release
2023-06-16 07:01:12 +02:00
71a9a2e7a9
tests/include-deb-file: run in all modes
2023-03-19 09:03:19 +01:00
901d017099
tests: do not run debug and verbose tests with variant standards for arches affected by #1031276
2023-03-13 13:21:18 +01:00
a184cc003c
tests: run verbose and debug tests with --variant=standard for maximum output
2023-03-05 19:25:13 +01:00
dd774b4f20
tests: skip debootstrap tests variant - on oldstable because of #917773
2023-03-05 15:26:37 +01:00
db2be70f88
tests: split out creation of mmdebstrap chroot into its own test to avoid running the same thing multiple times and speed up tests
2023-03-05 15:23:26 +01:00
5471b372e2
coverage.txt: mark two more tests Needs-APT-Config: true
2023-03-05 10:09:58 +01:00
70092c49e8
coverage.txt: #1030638 got fixed
2023-03-02 11:54:03 +01:00
3c0b992d94
coverage.txt: fakechroot bug #1023286 is not fixed in testing yet
2023-02-18 23:17:35 +01:00
2837f5b5d3
coverage.py: support USE_HOST_APT_CONFIG and new Needs-APT-Config field
2023-02-18 23:16:48 +01:00
fdbb66f75a
coverage.txt: skip check-for-bit-by-bit-identical-format-output in variant standard on armel, armhf and mipsel because of #1031276
2023-02-14 22:19:42 +01:00
b3810b0fcd
tests/as-debootstrap-unshare-wrapper: run in variants minbase and important
2023-02-13 14:48:01 +01:00
4c5097f59b
skip check-for-bit-by-bit-identical-format-output on 32bit arches because of #1030638
2023-02-13 14:45:28 +01:00
5e07567d5a
move running debootstrap from make_mirror.sh to a test case
2023-02-12 14:05:09 +01:00
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.
2023-02-12 14:05:08 +01:00
4c64adf6ee
add tests/auto-mode-as-normal-user
2023-02-10 04:00:11 +01:00
a2d5573749
tests: drop qemu requirements for tests that only use it to create a user by defaulting to SUDO_USER
2023-02-09 10:53:08 +01:00
f737cce3f1
Support creating a fakechroot with merged-/usr on an unmerged-/usr system
...
Thanks: Helmut Grohne for finding this issue and help interating this
2023-01-24 09:58:42 +01:00
c738e96752
allow empty sources.list entries
2023-01-16 15:19:50 +01:00
f27ed490d6
Do not split --include values again in run_download and run_install
...
Closes : #1028977
2023-01-16 12:13:21 +01:00
cc5ea8c0c7
tests/chrootless: now that all of essential is supported, test everything
2023-01-16 12:06:22 +01:00
2b832e0128
add jessie-or-older extract hook
2022-12-23 10:06:28 +01:00
ccd8919e67
add tests/unshare-include-deb
2022-12-23 10:06:27 +01:00
ea146ad108
add undocumented --chrooted-*-hook calling pivot_root in unshare mode
2022-11-14 14:35:12 +01:00
d29f9195d7
coverage.txt: add more requirements found by running tests on salsa ci and debci
2022-11-07 16:10:13 +01:00
822f8eafec
tests: test chrootless essential and systemd-sysv with fakeroot and foreign
2022-10-27 14:22:53 +02:00
a207ac020b
remove test merged-usr-via-setup-hook as merged-/usr is now the default
2022-10-16 14:45:29 +02:00
a16937e3e4
coverage.py: factor out coverage.txt parsing
2022-10-15 10:22:16 +02:00
410c5fcb24
fix --include option for files and add test case
2022-09-06 13:06:40 +02:00
add9412a47
add --skip=chroot/mount and --skip=chroot/mount/dev, --skip=chroot/mount/proc, --skip=chroot/mount/sys
2022-09-02 23:27:27 +02:00
e61e352f67
add --skip=chroot/start-stop-daemon and --skip=chroot/policy-rc.d
2022-09-02 23:25:48 +02:00
902bc55c4d
tarfilter --idshift now provides taridshift
2022-08-31 05:35:40 +02:00
226f86fea9
fix mmdebstrap hanging if apt in download step failed ( closes : #1017795 )
2022-08-30 21:55:57 +02:00
5533b25255
tests/chrootless-essential: enable again now that glibc is fixed
2022-08-11 12:45:00 +02:00
d82afec5de
error out if stdout is a tty
2022-07-28 17:20:57 +02:00
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
2022-06-14 08:26:48 +02:00