summaryrefslogtreecommitdiffstats
path: root/test/test-fstab-generator.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: quote paths to executablesYu Watanabe2024-09-181-2/+2
| | | | Fixes #34459.
* test-fstab-generator: skip test impacted by /mnt symlinkDaniel P. Berrangé2023-10-261-0/+8
| | | | | | | | | | | | | On rpm-ostree distributions such as Fedora SilverBlue /mnt (and other well known paths) will be a symlink to a location under /var. The fstab generator emits correct output in this case, however, the data does not match the expected output stored in the source tree. Rather than trying to adapt the test data, just skip this single test scenario when we see /mnt is a symlink. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Drop split-usr and unmerged-usr supportLuca Boccassi2023-07-281-5/+0
| | | | | | | | | | As previously announced, execute order 66: https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html The meson options split-usr, rootlibdir and rootprefix become no-ops that print a warning if they are set to anything other than the default values. We can remove them in a future release.
* test-fstab-generator: also test with SYSTEMD_IN_INITRD=noYu Watanabe2023-07-261-10/+21
|
* test-fstab-generator: extract core part as a functionYu Watanabe2023-07-261-88/+96
| | | | No functional change, preparation for later commits.
* test-fstab-generator: fix test on systemd with systemd-bootZbigniew Jędrzejewski-Szmek2023-05-311-0/+4
| | | | | | (… or other boot loaders implementing the Boot Loader Interface.) Fixes #27857.
* test: add test cases for defining mount and swap units from kernel cmdlineYu Watanabe2023-05-241-1/+19
|
* test-fstab-generator: add tests for mount optionsYu Watanabe2023-05-241-0/+9
|
* test-fstab-generator: also check file contentsYu Watanabe2023-05-241-7/+48
| | | | | Since e683878c0f03a4ffa123e37b27933fbf7e144901, only filenames are checked. Let's check contents of generated unit files.
* test: add fstab file support for fstab-generator testsLily Foster2023-01-261-1/+5
|
* test: fstab-generator: adjust PATH for fsckChristian Göttsche2022-11-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsck(8) is located in /usr/sib/ on Debian sid: stdout: *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-01-dev-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-02-dhcp.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-03-dhcp6.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-04-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-05-nfs4.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-06-ipv4.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-07-ipv6.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-08-implicit-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-09-cifs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-10-iscsi.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-11-live.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-12-dev-sdx.input --- /dev/fd/63 2022-11-04 15:39:13.131532174 +0100 +++ /dev/fd/62 2022-11-04 15:39:13.131532174 +0100 @@ -6,3 +6,4 @@ initrd-usr-fs.target.requires initrd-usr-fs.target.requires/sysroot.mount sysroot.mount +systemd-fsck-root.service **** Unexpected output for /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-12-dev-sdx.input stderr: Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on CIFS was requested. Skipping root directory handling, as root on iSCSI was requested. Skipping root directory handling, as root on live image was requested. Found entry what=/dev/sdx1 where=/sysroot type=n/a opts=ro Checking was requested for /dev/sdx1, but the fsck command does not exist.
* test: store empty files rather than symlinks for test-fstab-generatorLuca Boccassi2022-01-091-2/+4
| | | | | | | | | Dangling symlinks get pruned when packaging up the installation directory. Just store empty files instead, and compare the names rather than the content for .requires/.wants - the filename is what is important anyway, the content is ignored. Fixes #22059
* test: add test cases for fstab-generatorYu Watanabe2022-01-061-0/+38