1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 23:21:22 +03:00
systemd/src/test
Jan Janssen 4d5ad9d951 test-time-util: Properly restore TZ variable
The test fails to call tzset() after unsetting TZ variable, which
could break other tests. Also, let's be nicer and actually restore
the TZ to its original value.
2021-11-25 14:56:33 +01:00
..
generate-sym-test.py Stop using f-strings in generate-sym-test.py 2021-02-22 22:43:00 +01:00
meson.build test-gpt: add test that shows for which archs we have GPT partition types 2021-11-19 11:23:36 +01:00
nss-test-util.c tree-wide: voidify unchecked snprintf calls 2021-08-20 18:29:40 +01:00
nss-test-util.h test-nss-users: add new nss test that resolves users and groups 2021-03-23 14:14:08 +01:00
test-acl-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-af-list.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-alloc-util.c tree-wide: fix typo 2021-05-28 19:52:12 +09:00
test-architecture.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-arphrd-util.c arphrd-util: rename arphrd-list.[ch] -> arphrd-util.[ch] 2021-11-09 08:24:10 +09:00
test-ask-password-api.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-async.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-barrier.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-bitmap.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
test-blockdev-util.c basic,shared: move a bunch of files to src/shared/ 2021-06-24 10:11:00 +02:00
test-boot-timestamps.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-bpf-devices.c core: remove refcount for bpf program 2021-10-12 12:48:23 +02:00
test-bpf-firewall.c core: remove refcount for bpf program 2021-10-12 12:48:23 +02:00
test-bpf-foreign-programs.c core: remove refcount for bpf program 2021-10-12 12:48:23 +02:00
test-bpf-lsm.c test: add test-bpf-lsm 2021-10-06 10:52:15 +02:00
test-btrfs.c tree-wide: add FORMAT_BYTES() 2021-07-09 11:11:21 +02:00
test-bus-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-calendarspec.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
test-cap-list.c test: use cap_last_cap() for max supported cap number, not capability_list_length() 2020-11-26 13:35:48 +01:00
test-capability.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-cgroup-cpu.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-cgroup-mask.c src/test: add restrict network interfaces to test-cgroup-mask 2021-08-18 15:55:54 -05:00
test-cgroup-setup.c meson: simplify the BUILD_MODE conditional 2021-04-14 16:19:54 +02:00
test-cgroup-unit-default.c systemd-analyze: add --root option for 'verify' verb and allow path parsing 2021-08-10 02:41:12 -07:00
test-cgroup-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-cgroup.c test: skip tests if cgroup isn't mounted 2021-02-25 16:32:04 +09:00
test-chase-symlinks.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-chown-rec.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-clock.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-condition.c shared: split out UID allocation range stuff from user-record.h 2021-11-13 08:10:11 +01:00
test-conf-files.c tree-wide: use WRITE_STRING_FILE_MKDIR_0755 at more places 2021-11-16 18:57:57 +01:00
test-conf-parser.c test: update comment 2021-10-27 19:52:39 +00:00
test-copy.c tree-wide: use WRITE_STRING_FILE_MKDIR_0755 at more places 2021-11-16 18:57:57 +01:00
test-coredump-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-cpu-set-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-daemon.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-data-fd-util.c variuos: add missing includes 2021-09-22 12:58:46 +02:00
test-date.c tree-wide: add FORMAT_TIMESTAMP_STYLE() 2021-07-09 11:03:36 +02:00
test-dev-setup.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-device-nodes.c util: drop DEV_NUM_PATH_MAX and xsprintf_dev_num_path() 2021-06-04 15:51:39 +09:00
test-dlopen-so.c core: make libbpf a dlopen() dependency 2021-05-25 12:59:26 +01:00
test-dlopen.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-dns-domain.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-ellipsize.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-emergency-action.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-engine.c core: replace slice dependencies as they get added 2021-11-10 10:52:08 +01:00
test-env-file.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-env-util.c basic/env-util: correctly parse extended vars after non-extended vars (#20941) 2021-10-06 11:55:27 +09:00
test-escape.c escape: add flags argument to quote_command_line() 2021-11-11 10:05:46 +01:00
test-ether-addr-util.c test: add tests for MAC address helper functions 2021-11-12 20:00:50 +09:00
test-exec-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-execute.c tests: add test case for UMask=+BindPaths= combination 2021-11-12 16:02:26 +01:00
test-exit-status.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-extract-word.c basic/extract-word: add EXTRACT_RETAIN_SEPARATORS flag 2021-06-24 13:41:17 +01:00
test-fd-util.c build: fix build without seccomp 2021-11-25 13:22:32 +09:00
test-fdset.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-fileio.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-firewall-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-format-table.c json: add new JSON_BUILD_CONST_STRING() macro 2021-11-25 14:22:31 +01:00
test-format-util.c macro: Move some macros to macro-fundamental.h 2021-08-11 14:59:46 +02:00
test-fs-util.c fs-util: add new helper open_mkdir_at() 2021-11-17 21:48:18 +01:00
test-fstab-util.c shared/fstab-util: teach fstab_filter_options() a mode where all values are returned 2021-03-11 11:25:15 +01:00
test-gcrypt-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-glob-util.c basic/glob-util: add helper to strip the glob part from a glob 2021-06-04 12:21:19 +02:00
test-gpt.c bootctl: use new red/green check/cross mark helpers at two places 2021-11-23 22:40:15 +01:00
test-hash-funcs.c test-hash-funcs: add new file to test that path set ignores dot components 2021-06-24 10:59:45 +02:00
test-hashmap-ordered.awk tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
test-hashmap-plain.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-hashmap.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-hexdecoct.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
test-hmac.c basic: add hmac_sha256 implementation 2021-10-08 13:11:00 +01:00
test-hostname-setup.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-hostname-util.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
test-id128.c Add benchmark for sha256 calculations 2021-10-08 13:11:00 +01:00
test-import-util.c test: add simple test for import-util 2021-07-30 16:31:24 +02:00
test-in-addr-prefix-util.c test: add tests for in-addr-prefix-util.c 2021-09-14 20:30:09 +09:00
test-in-addr-util.c test: slightly modernize test-in-addr-util.c 2021-09-14 20:30:09 +09:00
test-install-file.c shared: add generic helper tools for installing files/dir trees 2021-08-17 10:08:48 +02:00
test-install-root.c tree-wide: use WRITE_STRING_FILE_MKDIR_0755 at more places 2021-11-16 18:57:57 +01:00
test-install.c install: make UnitFileChangeType enum anonymous 2021-02-17 19:29:24 +01:00
test-io-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-ip-protocol-list.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-ipcrm.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-job-type.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-journal-importer.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-json.c json: add new JSON_BUILD_CONST_STRING() macro 2021-11-25 14:22:31 +01:00
test-kbd-util.c Typos found by codespell 2021-10-20 22:20:18 +09:00
test-libcrypt-util.c fix typo 2021-06-15 14:19:30 +09:00
test-libmount.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-list.c list: add LIST_POP() helper that pops the first item off a linked list 2021-11-25 12:10:03 +01:00
test-load-fragment.c core: Try to prevent infinite recursive template instantiation 2021-10-28 11:42:21 +01:00
test-local-addresses.c test: add testcases of filtering on dumping addresses 2021-05-25 08:26:00 +09:00
test-locale-util.c basic: split out glyph/emoji related calls from locale-util.[ch] into glyph-util.[ch] 2021-10-05 16:14:37 +02:00
test-log.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-loop-block.c dissect: use DISKSEQ when waiting for block devices 2021-07-28 20:07:01 +01:00
test-loopback.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-macro.c test: Slightly rework DEFINE_TEST_MAIN macros 2021-11-25 14:56:33 +01:00
test-modhex.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-mount-util.c mount-util: port over bind_remount_recursive_with_mountinfo() to mount_setattr() 2021-10-25 10:41:26 +02:00
test-mountpoint-util.c basic,shared: move make_mount_point_inode_*() to shared/ 2021-06-23 10:34:58 +02:00
test-namespace.c core: make DynamicUser=1 and StateDirectory= work with TemporaryFileSystem=/var/lib 2021-10-27 22:45:26 +01:00
test-net-naming-scheme.c meson: drop the list of valid net naming schemes 2021-09-28 14:22:37 +02:00
test-netlink-manual.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-ns.c core: make DynamicUser=1 and StateDirectory= work with TemporaryFileSystem=/var/lib 2021-10-27 22:45:26 +01:00
test-nscd-flush.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-nss-hosts.c tree-wide: make format_ifname() or friends return negative errno on failure 2021-09-29 03:37:06 +09:00
test-nss-users.c test-nss-users: add new nss test that resolves users and groups 2021-03-23 14:14:08 +01:00
test-ordered-set.c ordered-set: make ordered_set_put_strdup() allocate OrderedSet object 2021-03-14 00:39:05 +09:00
test-os-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-parse-argument.c test-parse-argument: Include signal.h 2021-05-25 13:53:51 +02:00
test-parse-socket-bind-item.c shared: add parser for SocketBind{Allow|Deny}= 2021-06-30 00:36:26 -07:00
test-parse-util.c parse-util: prefix load average macros with LOAD_AVG_ 2021-09-27 20:34:41 +02:00
test-path-lookup.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-path-util.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
test-path.c test: do not use alloca() in function call 2021-10-28 03:55:22 +09:00
test-percent-util.c util: add some helpers for converting percent/permille/permyriad to parts of 2^32-1 2021-02-18 22:36:34 +01:00
test-pretty-print.c test-pretty-print: spelling nitpick 2021-11-24 15:55:58 +01:00
test-prioq.c tree-wide: use UINT64_MAX or friends 2021-03-05 07:10:13 +09:00
test-proc-cmdline.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
test-process-util.c test: add test for ioprio normalization 2021-11-24 16:12:15 +01:00
test-procfs-util.c test: refactor test-procfs-util for clarity and skip test on perm failure 2021-11-08 08:37:08 +01:00
test-psi-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-qrcode-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-random-util.c test: drop log_trace() in test-random-util 2021-05-06 12:46:31 +09:00
test-ratelimit.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-recurse-dir.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-replace-var.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-rlimit-util.c Return -EINVAL from _from_string() functions 2021-02-10 14:46:59 +01:00
test-rm-rf.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-sched-prio.c systemd-analyze: add --root option for 'verify' verb and allow path parsing 2021-08-10 02:41:12 -07:00
test-sd-hwdb.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-sd-path.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-seccomp.c test: Check that "native" architecture is always filtered 2021-09-30 08:06:19 +09:00
test-selinux.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-serialize.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-set-disable-mempool.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-set.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-sigbus.c journald: Retry if posix_fallocate returned -1 (EINTR) 2021-04-21 23:08:35 +02:00
test-signal-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-siphash24.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-sizeof.c test-sizeof: add intmax types 2021-11-18 01:34:31 +01:00
test-sleep.c sleep: use SleepOperation enum everywhere and drop sleep_settings() 2021-05-22 11:00:00 +02:00
test-socket-bind.c systemd-analyze: add --root option for 'verify' verb and allow path parsing 2021-08-10 02:41:12 -07:00
test-socket-netlink.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-socket-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-specifier.c tree-wide: make specifier expansion --root= aware 2021-06-24 22:30:14 +02:00
test-stat-util.c test: add test for dir_is_empty_at() 2021-10-25 21:51:37 +02:00
test-static-destruct.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-strbuf.c test: add one more assertion to make Coverty happy 2021-05-09 14:33:59 +09:00
test-string-util.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
test-strip-tab-ansi.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-strv.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-strxcpyx.c test-strxcpyx: check result of snprintf 2021-11-14 01:28:42 +00:00
test-sysctl-util.c test: add test case for sysctl-util.[ch] 2021-09-15 16:32:40 +02:00
test-tables.c sd-device: add sd_device_get_action() + sd_device_get_seqnum() + sd_device_new_from_stat_rdev() 2021-02-18 18:20:56 +01:00
test-terminal-util.c terminal: don't hardcode major number of PTYs 2021-05-19 17:58:01 +02:00
test-time-util.c test-time-util: Properly restore TZ variable 2021-11-25 14:56:33 +01:00
test-tmpfile-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-tmpfiles.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-tpm2.c test: add simple test for PCR list parsing 2021-05-25 23:40:10 +02:00
test-udev-util.c sd-device: use strjoina() more again in sd_device_new_from_subsystem_sysname() 2021-05-21 17:52:57 +02:00
test-udev.c shared: clean up mkdir.h/label.h situation 2021-11-16 17:03:28 +01:00
test-uid-alloc-range.c test: rename test-user-record → test-uid-alloc-range 2021-11-13 08:10:13 +01:00
test-uid-range.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-umask-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-unaligned.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-unit-file.c basic: Make ret_names param to unit_file_find_fragment() optional 2021-10-27 16:03:43 +01:00
test-unit-name.c core: Try to prevent infinite recursive template instantiation 2021-10-28 11:42:21 +01:00
test-unit-serialize.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-user-util.c test: use assert_se() instead of assert() 2021-10-12 15:20:28 +09:00
test-utf8.c basic/utf8: add function to convert to ASCII 2021-11-16 13:54:38 +01:00
test-util.c test: split out macro tests into own test-macro.c 2021-08-20 22:00:48 +02:00
test-varlink.c json: add new JSON_BUILD_CONST_STRING() macro 2021-11-25 14:22:31 +01:00
test-verbs.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-watch-pid.c systemd-analyze: add --root option for 'verify' verb and allow path parsing 2021-08-10 02:41:12 -07:00
test-watchdog.c watchdog: rename watchdog_set_timeout() into watchdog_setup() 2021-09-15 12:14:34 +02:00
test-web-util.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-xattr-util.c xattr-util: merge various getxattr()/listxattr() helpers into getxattr_at_malloc() + listxattr_at_malloc() 2021-10-07 11:49:22 +02:00
test-xml.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00