]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-tables.c
shared/install: do not require /dev/null to be present in chroots
[thirdparty/systemd.git] / src / test / test-tables.c
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
a8b409db 2
78f22b97 3#include "architecture.h"
a8b409db
ZJS
4#include "automount.h"
5#include "cgroup.h"
86bbe5bf 6#include "compress.h"
134e56dc 7#include "condition.h"
08caaee0 8#include "device-private.h"
a8b409db
ZJS
9#include "device.h"
10#include "execute.h"
018eaf74 11#include "import-util.h"
a8b409db
ZJS
12#include "install.h"
13#include "job.h"
78f22b97 14#include "journald-server.h"
a8b409db 15#include "kill.h"
78f22b97
LP
16#include "link-config.h"
17#include "locale-util.h"
a8b409db
ZJS
18#include "log.h"
19#include "logs-show.h"
018eaf74 20#include "machine-image.h"
a8b409db 21#include "mount.h"
a8b409db 22#include "path.h"
018eaf74
ZJS
23#include "process-util.h"
24#include "resolve-util.h"
cf0fbc49 25#include "rlimit-util.h"
a8b409db
ZJS
26#include "scope.h"
27#include "service.h"
a890906c 28#include "show-status.h"
a8b409db 29#include "slice.h"
a8b409db
ZJS
30#include "socket-util.h"
31#include "socket.h"
32#include "swap.h"
33#include "target.h"
cf0fbc49 34#include "test-tables.h"
a8b409db
ZJS
35#include "timer.h"
36#include "unit-name.h"
37#include "unit.h"
38#include "util.h"
d09f9686 39#include "virt.h"
a8b409db
ZJS
40
41int main(int argc, char **argv) {
86bbe5bf 42 test_table(architecture, ARCHITECTURE);
279eadd9 43 test_table(assert_type, CONDITION_TYPE);
a8b409db
ZJS
44 test_table(automount_result, AUTOMOUNT_RESULT);
45 test_table(automount_state, AUTOMOUNT_STATE);
018eaf74 46 test_table(cgroup_controller, CGROUP_CONTROLLER);
a8b409db 47 test_table(cgroup_device_policy, CGROUP_DEVICE_POLICY);
018eaf74
ZJS
48 test_table(cgroup_io_limit_type, CGROUP_IO_LIMIT_TYPE);
49 test_table(collect_mode, COLLECT_MODE);
59fccdc5 50 test_table(condition_result, CONDITION_RESULT);
279eadd9 51 test_table(condition_type, CONDITION_TYPE);
03d63a81 52 test_table(device_action, DEVICE_ACTION);
a8b409db 53 test_table(device_state, DEVICE_STATE);
03d63a81 54 test_table(dns_over_tls_mode, DNS_OVER_TLS_MODE);
018eaf74 55 test_table(dnssec_mode, DNSSEC_MODE);
279eadd9 56 test_table(emergency_action, EMERGENCY_ACTION);
018eaf74 57 test_table(exec_directory_type, EXEC_DIRECTORY_TYPE);
a8b409db 58 test_table(exec_input, EXEC_INPUT);
018eaf74 59 test_table(exec_keyring_mode, EXEC_KEYRING_MODE);
a8b409db 60 test_table(exec_output, EXEC_OUTPUT);
018eaf74
ZJS
61 test_table(exec_preserve_mode, EXEC_PRESERVE_MODE);
62 test_table(exec_utmp_mode, EXEC_UTMP_MODE);
63 test_table(image_type, IMAGE_TYPE);
64 test_table(import_verify, IMPORT_VERIFY);
a8b409db
ZJS
65 test_table(job_mode, JOB_MODE);
66 test_table(job_result, JOB_RESULT);
67 test_table(job_state, JOB_STATE);
68 test_table(job_type, JOB_TYPE);
69 test_table(kill_mode, KILL_MODE);
70 test_table(kill_who, KILL_WHO);
279eadd9 71 test_table(locale_variable, VARIABLE_LC);
a8b409db 72 test_table(log_target, LOG_TARGET);
54ed9f88 73 test_table(mac_address_policy, MAC_ADDRESS_POLICY);
86bbe5bf 74 test_table(manager_state, MANAGER_STATE);
018eaf74 75 test_table(manager_timestamp, MANAGER_TIMESTAMP);
a8b409db
ZJS
76 test_table(mount_exec_command, MOUNT_EXEC_COMMAND);
77 test_table(mount_result, MOUNT_RESULT);
78 test_table(mount_state, MOUNT_STATE);
86bbe5bf 79 test_table(name_policy, NAMEPOLICY);
018eaf74 80 test_table(namespace_type, NAMESPACE_TYPE);
a8b409db 81 test_table(notify_access, NOTIFY_ACCESS);
03d63a81 82 test_table(notify_state, NOTIFY_STATE);
a8b409db 83 test_table(output_mode, OUTPUT_MODE);
018eaf74 84 test_table(partition_designator, PARTITION_DESIGNATOR);
a8b409db
ZJS
85 test_table(path_result, PATH_RESULT);
86 test_table(path_state, PATH_STATE);
87 test_table(path_type, PATH_TYPE);
86bbe5bf
ZJS
88 test_table(protect_home, PROTECT_HOME);
89 test_table(protect_system, PROTECT_SYSTEM);
018eaf74 90 test_table(resolve_support, RESOLVE_SUPPORT);
8aa209ee 91 test_table(rlimit, RLIMIT);
a8b409db
ZJS
92 test_table(scope_result, SCOPE_RESULT);
93 test_table(scope_state, SCOPE_STATE);
94 test_table(service_exec_command, SERVICE_EXEC_COMMAND);
95 test_table(service_restart, SERVICE_RESTART);
96 test_table(service_result, SERVICE_RESULT);
97 test_table(service_state, SERVICE_STATE);
98 test_table(service_type, SERVICE_TYPE);
a890906c 99 test_table(show_status, SHOW_STATUS);
a8b409db 100 test_table(slice_state, SLICE_STATE);
a8b409db
ZJS
101 test_table(socket_address_bind_ipv6_only, SOCKET_ADDRESS_BIND_IPV6_ONLY);
102 test_table(socket_exec_command, SOCKET_EXEC_COMMAND);
103 test_table(socket_result, SOCKET_RESULT);
104 test_table(socket_state, SOCKET_STATE);
86bbe5bf
ZJS
105 test_table(split_mode, SPLIT);
106 test_table(storage, STORAGE);
a8b409db
ZJS
107 test_table(swap_exec_command, SWAP_EXEC_COMMAND);
108 test_table(swap_result, SWAP_RESULT);
109 test_table(swap_state, SWAP_STATE);
a8b409db
ZJS
110 test_table(target_state, TARGET_STATE);
111 test_table(timer_base, TIMER_BASE);
112 test_table(timer_result, TIMER_RESULT);
113 test_table(timer_state, TIMER_STATE);
114 test_table(unit_active_state, UNIT_ACTIVE_STATE);
115 test_table(unit_dependency, UNIT_DEPENDENCY);
116 test_table(unit_file_change_type, UNIT_FILE_CHANGE_TYPE);
86bbe5bf 117 test_table(unit_file_preset_mode, UNIT_FILE_PRESET);
a8b409db
ZJS
118 test_table(unit_file_state, UNIT_FILE_STATE);
119 test_table(unit_load_state, UNIT_LOAD_STATE);
120 test_table(unit_type, UNIT_TYPE);
d09f9686 121 test_table(virtualization, VIRTUALIZATION);
a8b409db 122
86bbe5bf
ZJS
123 test_table_sparse(object_compressed, OBJECT_COMPRESSED);
124
a8b409db
ZJS
125 return EXIT_SUCCESS;
126}