summaryrefslogtreecommitdiff
path: root/src/test/test-unit-name.c
Commit message (Collapse)AuthorAge
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* tests: skip bus test if bus cannot be openedZbigniew Jędrzejewski-Szmek2013-03-26
| | | | | | To make the result more visible, special return value is used to tell automake that the test was skipped. While at it, use the same return value in other skipped tests.
* Simplify the meaning of %sZbigniew Jędrzejewski-Szmek2013-03-26
| | | | | | | | | | | | | | | | | | | The rules governing %s where just too complicated. First of all, looking at $SHELL is dangerous. For systemd --system, it usually wouldn't be set. But it could be set if the admin first started a debug shell, let's say /sbin/sash, and then launched systemd from it. This shouldn't influence how daemons are started later on, so is better ignored. Similar reasoning holds for session mode. Some shells set $SHELL, while other set it only when it wasn't set previously (e.g. zsh). This results in fragility that is better avoided by ignoring $SHELL totally. With $SHELL out of the way, simplify things by saying that %s==/bin/sh for root, and the configured shell otherwise. get_shell() is the only caller, so it can be inlined. Fixes one issue seen with 'make check'.
* tests: skip tests if manager cannot be createdZbigniew Jędrzejewski-Szmek2013-02-06
| | | | When running without a user session, tests fail.
* tests: run manager in session modeZbigniew Jędrzejewski-Szmek2013-02-06
| | | | | | | | | | | False positives pop up otherwise. FAIL: test-unit-name (exit: 134) ================================ Failed to open /dev/tty0: Permission denied Failed to create root cgroup hierarchy: Permission denied Assertion 'manager_new(SYSTEMD_SYSTEM, &m) == 0' failed at src/test/test-unit-name.c:125, function test_unit_printf(). Aborting.
* tests: add test for unit name printingZbigniew Jędrzejewski-Szmek2013-01-29
|
* tests: compress unit name tests and add more assertsZbigniew Jędrzejewski-Szmek2013-01-29
|
* test: extend unit-name test a bitLennart Poettering2012-09-12
|
* unit-name: rework unit_name_replace_instance function()Lennart Poettering2012-09-12
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=855863
* cryptsetup: fix escaping when generating cryptsetup unitsLennart Poettering2012-06-25
|
* systemctl: automatically turn paths and unescaped unit names into proper ↵Lennart Poettering2012-06-22
unit names This makes sure that systemctl status /home is implicitly translated to: systemctl status /home.mount Similar, /dev/foobar becomes dev-foobar.device. Also, all characters that cannot be part of a unit name are implicitly escaped.