Systemd/src/test
Zbigniew Jędrzejewski-Szmek 36b4a7ba55 Remove snapshot unit type
Snapshots were never useful or used for anything. Many systemd
developers that I spoke to at systemd.conf2015, didn't even know they
existed, so it is fairly safe to assume that this type can be deleted
without harm.

The fundamental problem with snapshots is that the state of the system
is dynamic, devices come and go, users log in and out, timers fire...
and restoring all units to some state from the past would "undo"
those changes, which isn't really possible.

Tested by creating a snapshot, running the new binary, and checking
that the transition did not cause errors, and the snapshot is gone,
and snapshots cannot be created anymore.

New systemctl says:
Unknown operation snapshot.
Old systemctl says:
Failed to create snapshot: Support for snapshots has been removed.

IgnoreOnSnaphost settings are warned about and ignored:
Support for option IgnoreOnSnapshot= has been removed and it is ignored

http://lists.freedesktop.org/archives/systemd-devel/2015-November/034872.html
2015-11-10 19:33:06 -05:00
..
.gitignore test: generate tests for OrderedHashmap from Hashmap tests 2014-10-23 17:38:02 +02:00
Makefile
test-af-list.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-architecture.c basic: rework virtualization detection API 2015-09-07 13:42:47 +02:00
test-arphrd-list.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-async.c util-lib: move more file I/O related calls into fileio.[ch] 2015-10-27 13:25:55 +01:00
test-barrier.c test: disable test-barrier by default 2015-06-18 10:25:08 +02:00
test-bitmap.c bitmap: make bitmap_clear free the bitmap array 2015-07-31 19:08:26 +02: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 util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] 2015-10-27 13:25:55 +01:00
test-calendarspec.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-cap-list.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-capability.c src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → capability-util.[ch] 2015-10-27 13:25:57 +01:00
test-cgroup-mask.c core: unified cgroup hierarchy support 2015-09-01 23:52:27 +02:00
test-cgroup-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-cgroup.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-condition.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-conf-files.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-conf-parser.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-copy.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-daemon.c core: add support for naming file descriptors passed using socket activation 2015-10-06 11:52:48 +02:00
test-date.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-device-nodes.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-dns-domain.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-ellipsize.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-engine.c tests: Skip tests which need to access /sys/fs/cgroup if that is not available 2015-09-04 16:34:21 +02:00
test-env-replace.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-execute.c test-execute: move all files related to a specific directory 2015-10-31 15:07:19 +01:00
test-extract-word.c test-extract-word: Move extract-word tests into their own test case 2015-10-28 08:16:00 -07:00
test-fdset.c util-lib: move more file I/O related calls into fileio.[ch] 2015-10-27 13:25:55 +01:00
test-fileio.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-firewall-util.c firewall: rename fw-util.[ch] → firewall-util.[ch] 2015-06-15 14:08:02 +02:00
test-fstab-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-hashmap-plain.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-hashmap.c hashmap: allow NULL key in ordered_hashmap_next() 2015-06-17 17:28:44 +02:00
test-helper.h
test-hostname-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-hostname.c btrfs: support recursively removing btrfs snapshots 2015-04-06 11:28:16 +02:00
test-id128.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-install.c remove unused includes 2015-02-23 23:53:42 +01:00
test-ipcrm.c util-lib: split out user/group/uid/gid calls into user-util.[ch] 2015-10-26 01:24:38 +01:00
test-job-type.c remove unused includes 2015-02-23 23:53:42 +01:00
test-json.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-libudev.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-list.c basic: add LIST_INSERT_BEFORE 2015-08-04 03:23:43 -07: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 tree-wide: don't do assignments within if checks 2015-09-09 08:20:20 +02:00
test-namespace.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-netlink-manual.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-ns.c core: Private*/Protect* options with RootDirectory 2015-05-18 18:47:45 +02:00
test-parse-util.c test-parse-util: Move parse-util tests into their own test case 2015-10-28 08:17:10 -07:00
test-path-lookup.c tests: lookup_paths_init depends on SYSTEMD_UNIT_PATH. Test it 2015-10-31 22:00:32 +03:00
test-path-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-path.c test-path: move all related test files to a specific directory 2015-10-31 15:07:19 +01:00
test-prioq.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-process-util.c process-util: rename get_parent_of_pid() → get_process_ppid() 2015-10-27 14:01:48 +01:00
test-ratelimit.c tree-wide: update empty-if coccinelle script to cover empty-while and more 2015-09-09 14:59:51 +02:00
test-replace-var.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-sched-prio.c tests: Skip tests which need to access /sys/fs/cgroup if that is not available 2015-09-04 16:34:21 +02:00
test-set.c core: set_put never returns -EEXIST 2015-04-10 17:13:15 +02:00
test-sigbus.c util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
test-siphash24.c siphash24: unify API 2015-10-06 17:47:00 +02: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 util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-strbuf.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-string-util.c string-util: rework memory_erase() so that it cannot be optimized away 2015-11-02 23:07:20 +01:00
test-strip-tab-ansi.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-strv.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-strxcpyx.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
test-tables.c Remove snapshot unit type 2015-11-10 19:33:06 -05:00
test-terminal-util.c util-lib: move more file I/O related calls into fileio.[ch] 2015-10-27 13:25:55 +01:00
test-time.c time-util: add parse_time(), which is like parse_sec() but allows specification of default time unit if none is specified 2015-11-10 17:31:31 +01:00
test-tmpfiles.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-udev.c test-udev: small fixes 2015-11-06 12:14:02 +00:00
test-uid-range.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +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 core: accept time units for time-based resource limits 2015-11-10 17:36:46 +01:00
test-unit-name.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-user-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-utf8.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
test-util.c proc-cmdline: add runlevel to target mapping 2015-11-03 14:09:03 +03: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 util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00