Systemd/src/test
Martin Pitt 139e533628 hostname: Allow comments in /etc/hostname
The hostname(1) tool allows comments in /etc/hostname. Introduce a new
read_hostname_config() in hostname-util which reads a hostname configuration
file like /etc/hostname, strips out comments, whitespace, and cleans the
hostname. Use it in hostname-setup.c and hostnamed and remove duplicated code.

Update hostname manpage. Add tests.

https://launchpad.net/bugs/1053048
2015-05-19 12:18:08 +02:00
..
.gitignore test: generate tests for OrderedHashmap from Hashmap tests 2014-10-23 17:38:02 +02:00
Makefile
test-architecture.c condition: properly allow passing back errors from condition checks 2014-11-06 14:21:10 +01:00
test-async.c shared/async: simplify asynchronous_job a bit 2015-02-02 20:31:18 -05:00
test-barrier.c remove unused includes 2015-02-23 23:53:42 +01:00
test-boot-timestamps.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
test-btrfs.c btrfs: add support for recursive btrfs snapshotting 2015-04-06 15:26:59 +02:00
test-calendarspec.c calendarspec: parse 'quarterly' and 'semi-annually' as shortcuts 2014-10-27 18:09:26 +01:00
test-cap-list.c remove unused includes 2015-02-23 23:53:42 +01:00
test-capability.c remove unused includes 2015-02-23 23:53:42 +01:00
test-cgroup-mask.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-cgroup-util.c cgroup-util: be more strict when processing slice unit names 2015-05-05 15:06:33 -07:00
test-cgroup.c remove unused includes 2015-02-23 23:53:42 +01:00
test-condition.c util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
test-conf-files.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-copy.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-daemon.c
test-date.c
test-device-nodes.c
test-ellipsize.c shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
test-engine.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-env-replace.c util: remove normalize_env_assignment(), it's unused 2015-04-10 16:23:46 +02:00
test-execute.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-fdset.c
test-fileio.c shared: add process-util.[ch] 2015-04-10 23:54:49 +02:00
test-fstab-util.c fstab-util: fix priority parsing and add test 2015-01-11 23:41:42 -05:00
test-fw-util.c shared: add minimal firewall manipulation helpers for establishing NAT rules, using libiptc 2015-01-13 13:55:15 +01:00
test-hashmap-plain.c test-hashmap: fix an assert 2015-05-19 06:35:44 +02:00
test-hashmap.c test-hashmap: fix gcc5 warning 2015-02-24 16:26:30 +01:00
test-helper.h
test-hostname.c btrfs: support recursively removing btrfs snapshots 2015-04-06 11:28:16 +02:00
test-id128.c
test-install.c remove unused includes 2015-02-23 23:53:42 +01:00
test-ipcrm.c
test-job-type.c remove unused includes 2015-02-23 23:53:42 +01:00
test-json.c remove unused includes 2015-02-23 23:53:42 +01:00
test-libudev.c test-libudev: fix leak in error case 2015-05-11 21:42:59 +02:00
test-list.c test: duplicate LIST_FOREACH_OTHERS test to check for corner cases of end and start of list 2015-01-28 14:22:13 +01:00
test-locale-util.c remove unused includes 2015-02-23 23:53:42 +01:00
test-log.c shared: add formats-util.h 2015-04-10 23:54:48 +02:00
test-loopback.c remove unused includes 2015-02-23 23:53:42 +01:00
test-namespace.c shared: add process-util.[ch] 2015-04-10 23:54:49 +02:00
test-ns.c core: Private*/Protect* options with RootDirectory 2015-05-18 18:47:45 +02:00
test-path-lookup.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-path-util.c util: add generic calls for prefixing a root directory to a path 2015-05-13 17:42:10 +02:00
test-path.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-prioq.c
test-process-util.c sd-bus: properly handle creds that are known but undefined for a process 2015-04-29 21:45:58 +02:00
test-pty.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
test-ratelimit.c
test-replace-var.c
test-ring.c remove unused includes 2015-02-23 23:53:42 +01:00
test-rtnl-manual.c remove unused includes 2015-02-23 23:53:42 +01:00
test-sched-prio.c core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test-set.c core: set_put never returns -EEXIST 2015-04-10 17:13:15 +02:00
test-sigbus.c tests: use assert_se instead of assert 2015-01-22 23:10:56 +01:00
test-sleep.c treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
test-socket-util.c test-socket-util: add test for in_addr_to_string 2015-04-08 02:42:50 +02:00
test-strbuf.c treewide: correct spacing near eol in code comments 2014-12-11 15:10:03 +01:00
test-strip-tab-ansi.c shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
test-strv.c util: rework word parsing and c unescaping code 2015-03-26 11:56:22 +01:00
test-strxcpyx.c remove unused includes 2015-02-23 23:53:42 +01:00
test-tables.c remove unused includes 2015-02-23 23:53:42 +01:00
test-terminal-util.c shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
test-time.c test-time: test "infinity" parsing in nanoseconds 2015-02-24 13:27:10 +01:00
test-tmpfiles.c shared: add formats-util.h 2015-04-10 23:54:48 +02:00
test-udev.c libudev: private - introduce udev_device_new_from_synthetic_event() 2015-03-18 14:49:20 +01:00
test-uid-range.c treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1 2014-11-28 20:55:04 +01:00
test-unaligned.c shared: unaligned - use void* instead of unaligned be16_t* 2014-11-05 16:54:22 +01:00
test-unit-file.c util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
test-unit-name.c util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
test-utf8.c test: utf8 - fix utf16 tests on BE machines 2015-02-18 15:23:23 +01:00
test-util.c hostname: Allow comments in /etc/hostname 2015-05-19 12:18:08 +02:00
test-verbs.c test-verbs: add unit tests for verbs minilib 2015-01-08 15:57:38 -05:00
test-watchdog.c remove unused includes 2015-02-23 23:53:42 +01:00
test-xml.c