summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-13.machinectl.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: reorder the machinectl signal testsFrantisek Sumsal2023-07-101-2/+3
| | | | | | | | | | | | | | | So the multiple-machines tests run last to avoid a race where the checked signal would get ignored while the stub init is still processing the previous signals: [ 17.380417] testsuite-13.sh[376]: + machinectl reboot long-running long-running long-running [ 17.389888] systemd-nspawn[495]: ++ touch /reboot [ 17.390904] testsuite-13.sh[376]: + rm -f /var/lib/machines/long-running/trap [ 17.393937] testsuite-13.sh[376]: + machinectl kill --signal=SIGTRAP --kill-whom=leader long-running [ 17.408905] testsuite-13.sh[376]: + timeout 10 bash -c 'while ! test -e /var/lib/machines/long-running/trap; do sleep .5; done' [ 27.413210] testsuite-13.sh[376]: + at_exit ... [ 27.993376] testsuite-13.sh[373]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-13.machinectl.sh failed'
* test: bump the test container size to 64 MiBFrantisek Sumsal2023-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | As 32 MiB appears to be on the edge of barely enough on C8S: [ 149.974689] testsuite-13.sh[601]: + dd if=/dev/zero of=/tmp/container.raw bs=1M count=32 [ 150.388423] testsuite-13.sh[1096]: 32+0 records in [ 150.390721] testsuite-13.sh[1096]: 32+0 records out [ 150.392450] testsuite-13.sh[1096]: 33554432 bytes (34 MB, 32 MiB) copied, 0.354336 s, 94.7 MB/s [ 150.396422] testsuite-13.sh[601]: + mkfs.ext4 /tmp/container.raw [ 150.472209] testsuite-13.sh[1097]: mke2fs 1.45.6 (20-Mar-2020) [ 150.561303] testsuite-13.sh[1097]: Discarding device blocks: done [ 150.565438] testsuite-13.sh[1097]: Creating filesystem with 32768 1k blocks and 8192 inodes [ 150.568301] testsuite-13.sh[1097]: Filesystem UUID: d8e3c43b-0f1f-4e89-8c26-100e4a32b64f [ 150.569777] testsuite-13.sh[1097]: Superblock backups stored on blocks: [ 150.571135] testsuite-13.sh[1097]: 8193, 24577 [ 150.572751] testsuite-13.sh[1097]: Allocating group tables: done [ 150.574294] testsuite-13.sh[1097]: Writing inode tables: done [ 150.598696] testsuite-13.sh[1097]: Creating journal (4096 blocks): done [ 150.604285] testsuite-13.sh[1097]: Writing superblocks and filesystem accounting information: done [ 150.612309] testsuite-13.sh[601]: + mount -o loop /tmp/container.raw /tmp/mnt [ 150.879736] testsuite-13.sh[601]: + cp -r /var/lib/machines/container1/bin ... /tmp/mnt [ 152.347545] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/log': No space left on device [ 152.351739] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/tmp': No space left on device
* test: create nspawn config files when collecting coverageFrantisek Sumsal2023-05-181-0/+1
| | | | | | | Which bind-mounts the $BUILD_DIR into the container. This whole coverage thing is getting slightly ridiculous. Follow-up to 3b2823a749, but for non-machinectl containers.
* test: get rid of the busybox stuffFrantisek Sumsal2023-05-171-14/+14
| | | | | | It already required a lot of workarounds, since the busybox utilities often work differently than their "full" counterparts, and putting the container together using our "tools" is quite simple anyway.
* test: wait after sending a signal if necessaryFrantisek Sumsal2023-05-141-3/+3
| | | | | On overloaded systems it might take a bit until the signal is sent, processed, and the respective file is created.
* test: merge machinectl edit/cat tests into TEST-13Frantisek Sumsal2023-05-131-0/+19
|
* test: add a couple of tests for machinectlFrantisek Sumsal2023-05-131-0/+197