summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: mangle the machine ID only for the QEMU test partHEADmainFrantisek Sumsal2023-05-171-1/+5
| | | | | | | | | | | | | systemd-nspawn doesn't like invalid machine IDs and refuses to boot with one: TEST-74-AUX-UTILS RUN: Tests for auxiliary utilities ... Spawning container TEST-74-AUX-UTILS--3 on /var/tmp/systemd-test-TEST-74-AUX-UTILS_3/root. Press Ctrl-] three times within 1s to kill container. Failed to read machine ID from container image: Structure needs cleaning E: nspawn failed with exit code 1 Follow-up to b4d42a82eb.
* test: move runas() to the shared utility libraryFrantisek Sumsal2023-05-164-17/+14
|
* test: make shellcheck happy againFrantisek Sumsal2023-05-1610-6/+13
| | | | No functional changes.
* test: merge TEST-48-START-STOP-NO-RELOAD into TEST-23-UNIT-FILEFrantisek Sumsal2023-05-164-47/+33
|
* test: merge TEST-49-RUNTIME-BIND-PATHS into TEST-23-UNIT-FILEFrantisek Sumsal2023-05-167-68/+44
|
* test: clean up test artifactsFrantisek Sumsal2023-05-162-0/+19
| | | | So we don't run into unexpected fails when two tests use the same paths.
* test: merge TEST-28-PERCENTJ-WANTEDBY into TEST-23-UNIT-FILEFrantisek Sumsal2023-05-167-33/+18
|
* test: merge TEST-56-EXIT-TYPE into TEST-19-CGROUPFrantisek Sumsal2023-05-165-99/+102
| | | | And clean it up a bit.
* test: rename TEST-19-DELEGATE to TEST-19-CGROUPFrantisek Sumsal2023-05-164-66/+109
| | | | And clean it up a bit.
* test: introduce get_cgroup_hierarchy()Frantisek Sumsal2023-05-161-0/+18
|
* test: rename assert.sh to util.shFrantisek Sumsal2023-05-1628-55/+55
| | | | | | | So we can extend it with additional utility functions without making it confusing. No functional change.
* test: merge TEST-33-CLEAN-UNIT into TEST-23-UNIT-FILEFrantisek Sumsal2023-05-164-25/+2
|
* test: merge TEST-27-STDOUTFILE into TEST-23-UNIT-FILEFrantisek Sumsal2023-05-164-27/+6
|
* test: merge TEST-14-MACHINE-ID into TEST-74-AUX-UTILSFrantisek Sumsal2023-05-166-65/+88
|
* Merge pull request #27606 from YHNdnzj/loginctl-list-show-stateYu Watanabe2023-05-171-4/+14
|\ | | | | loginctl: list-{users,sessions}: add a column for showing state
| * test: add test for state in loginctl list-{users,sessions}Mike Yuan2023-05-161-4/+14
| |
* | Merge pull request #27655 from ↵Yu Watanabe2023-05-171-0/+86
|\ \ | | | | | | | | | | | | yuwata/udev-net-assign-alternative-names-only-on-add-event udev/net: assign alternative names only on add event
| * | test: add tests for renaming network interfaceYu Watanabe2023-05-161-0/+86
| |/
* | Merge pull request #27651 from mrc0mmand/more-nspawn-testsFrantisek Sumsal2023-05-163-40/+611
|\ \ | | | | | | nspawn: OCI related fixes & tests
| * | fuzz: update the base JSON for fuzz-nspawn-ociFrantisek Sumsal2023-05-161-20/+227
| | |
| * | test: add a couple of tests for nspawn's OCI stuffFrantisek Sumsal2023-05-162-20/+384
| |/
* | Merge pull request #27638 from YHNdnzj/upheldby-unit-fileMike Yuan2023-05-163-1/+15
|\ \ | |/ |/| unit-file: support UpheldBy= in [Install] settings (adding Upholds= deps from .upholds/)
| * test: add tests for UpheldBy= in [Install] sectionMike Yuan2023-05-153-1/+15
| |
* | test: make $BUILD_DIR writable when rootfs is mounted read-onlyFrantisek Sumsal2023-05-151-2/+6
| | | | | | | | | | Adjust two systemd-nspawn invocations where rootfs is mounted read-only, to avoid gcov complaining.
* | test: pass $BUILD_DIR as $COVERAGE_BUILD_DIR to the system managerFrantisek Sumsal2023-05-151-0/+5
| | | | | | | | To make additional coverage-related tweaks slightly easier.
* | test: update nspawn's basic config file used for fuzzingFrantisek Sumsal2023-05-151-3/+32
|/
* test: rename TEST-13-NSPAWN-SMOKE to TEST-13-NSPAWNFrantisek Sumsal2023-05-143-2/+2
| | | | To make it consistent with the rest of the tests.
* test: slightly extend the systemd-nspawn testsFrantisek Sumsal2023-05-142-0/+235
|
* 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: install the overlayfs/loop modules unconditionallyFrantisek Sumsal2023-05-144-37/+22
|
* test: create merged-usr containersFrantisek Sumsal2023-05-141-18/+22
|
* test: bind mount the $BUILD_DIR into nspawn containersFrantisek Sumsal2023-05-142-5/+6
| | | | | when collecting coverage. This applies only to containers started via machinectl (or directly via the systemd-nspawn@.service unit).
* test: use dropins to override system configurationFrantisek Sumsal2023-05-141-11/+13
| | | | Instead of touching the configuration files directly.
* Merge pull request #27634 from mrc0mmand/TEST-13-shenanigansLuca Boccassi2023-05-139-325/+622
|\ | | | | test: clean up & extend the nspawn/machinectl test suite
| * test: merge machinectl edit/cat tests into TEST-13Frantisek Sumsal2023-05-132-36/+19
| |
| * test: always install the script utilityFrantisek Sumsal2023-05-133-8/+1
| |
| * test: add a couple of tests for machinectlFrantisek Sumsal2023-05-135-367/+582
| |
| * test: clean up the nspawn tests a bitFrantisek Sumsal2023-05-124-152/+258
| |
* | core: fix memory leak during deserializationFrantisek Sumsal2023-05-131-0/+6
| | | | | | | | | | | | when activation-details-unit-name is encountered multiple times. Resolves: #27623
* | test-network: add tests for static lease matching with chaddrYu Watanabe2023-05-121-0/+11
| | | | | | | | Follow-up for 4646cdaa378fa2aab7334a80228d8a94b316763b (#27313).
* | cryptenroll: actually allow using multiple "special" strings when wipingFrantisek Sumsal2023-05-111-1/+1
|/ | | | | | | | | | | | The systemd-cryptenroll man page states: Takes a comma separated list of numeric slot indexes, or the special strings ..., or any combination of these strings or numeric indexes, in which case all slots matching either are wiped. but we'd allow only one special string at any given time as the value was not ORed when assigning. So, for example, --wipe=recovery,password would actually become --wipe=password, etc.
* Merge pull request #27603 from mrc0mmand/more-test-shenanigansYu Watanabe2023-05-1170-464/+415
|\ | | | | test: merge PID1-related tests into TEST-07-PID1
| * test: abstract the common test parts into a utility scriptFrantisek Sumsal2023-05-107-73/+150
| | | | | | | | | | Also, instead of bailing out on the first failed subtest, always run all subtests and print a summary at the end (with an appropriate exit code).
| * test: merge TEST-20-MAINPIDGAMES into TEST-07-PID1Frantisek Sumsal2023-05-105-46/+39
| |
| * test: merge TEST-51-ISSUE-16115 into TEST-07-PID1Frantisek Sumsal2023-05-108-34/+16
| |
| * test: merge TEST-47-ISSUE-14566 into TEST-07-PID1Frantisek Sumsal2023-05-107-45/+32
| |
| * test: move TEST-23's units into a dedicated subfolderFrantisek Sumsal2023-05-1012-0/+1
| | | | | | | | To remain consistent with other tests.
| * test: merge TEST-12-ISSUE-3171 into TEST-07-PID1Frantisek Sumsal2023-05-105-70/+50
| |
| * test: merge TEST-11-ISSUE-3166 into TEST-07-PID1Frantisek Sumsal2023-05-106-34/+16
| |
| * test: merge TEST-10-ISSUE-2467 with TEST-07-PID1Frantisek Sumsal2023-05-108-40/+27
| |