1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 This file is part of systemd
5 Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 #include "architecture.h"
12 #include "condition.h"
17 #include "journald-server.h"
19 #include "link-config.h"
20 #include "locale-util.h"
22 #include "logs-show.h"
25 #include "rlimit-util.h"
29 #include "socket-util.h"
33 #include "test-tables.h"
35 #include "unit-name.h"
40 int main(int argc
, char **argv
) {
41 test_table(architecture
, ARCHITECTURE
);
42 test_table(automount_result
, AUTOMOUNT_RESULT
);
43 test_table(automount_state
, AUTOMOUNT_STATE
);
44 test_table(cgroup_device_policy
, CGROUP_DEVICE_POLICY
);
45 test_table(condition_type
, CONDITION_TYPE
);
46 test_table(assert_type
, CONDITION_TYPE
);
47 test_table(condition_result
, CONDITION_RESULT
);
48 test_table(device_state
, DEVICE_STATE
);
49 test_table(exec_input
, EXEC_INPUT
);
50 test_table(exec_output
, EXEC_OUTPUT
);
51 test_table(emergency_action
, EMERGENCY_ACTION
);
52 test_table(job_mode
, JOB_MODE
);
53 test_table(job_result
, JOB_RESULT
);
54 test_table(job_state
, JOB_STATE
);
55 test_table(job_type
, JOB_TYPE
);
56 test_table(kill_mode
, KILL_MODE
);
57 test_table(kill_who
, KILL_WHO
);
58 test_table(log_target
, LOG_TARGET
);
59 test_table(mac_policy
, MACPOLICY
);
60 test_table(manager_state
, MANAGER_STATE
);
61 test_table(mount_exec_command
, MOUNT_EXEC_COMMAND
);
62 test_table(mount_result
, MOUNT_RESULT
);
63 test_table(mount_state
, MOUNT_STATE
);
64 test_table(name_policy
, NAMEPOLICY
);
65 test_table(notify_access
, NOTIFY_ACCESS
);
66 test_table(output_mode
, OUTPUT_MODE
);
67 test_table(path_result
, PATH_RESULT
);
68 test_table(path_state
, PATH_STATE
);
69 test_table(path_type
, PATH_TYPE
);
70 test_table(protect_home
, PROTECT_HOME
);
71 test_table(protect_system
, PROTECT_SYSTEM
);
72 test_table(rlimit
, RLIMIT
);
73 test_table(scope_result
, SCOPE_RESULT
);
74 test_table(scope_state
, SCOPE_STATE
);
75 test_table(service_exec_command
, SERVICE_EXEC_COMMAND
);
76 test_table(service_restart
, SERVICE_RESTART
);
77 test_table(service_result
, SERVICE_RESULT
);
78 test_table(service_state
, SERVICE_STATE
);
79 test_table(service_type
, SERVICE_TYPE
);
80 test_table(slice_state
, SLICE_STATE
);
81 test_table(socket_address_bind_ipv6_only
, SOCKET_ADDRESS_BIND_IPV6_ONLY
);
82 test_table(socket_exec_command
, SOCKET_EXEC_COMMAND
);
83 test_table(socket_result
, SOCKET_RESULT
);
84 test_table(socket_state
, SOCKET_STATE
);
85 test_table(split_mode
, SPLIT
);
86 test_table(storage
, STORAGE
);
87 test_table(swap_exec_command
, SWAP_EXEC_COMMAND
);
88 test_table(swap_result
, SWAP_RESULT
);
89 test_table(swap_state
, SWAP_STATE
);
90 test_table(target_state
, TARGET_STATE
);
91 test_table(timer_base
, TIMER_BASE
);
92 test_table(timer_result
, TIMER_RESULT
);
93 test_table(timer_state
, TIMER_STATE
);
94 test_table(unit_active_state
, UNIT_ACTIVE_STATE
);
95 test_table(unit_dependency
, UNIT_DEPENDENCY
);
96 test_table(unit_file_change_type
, UNIT_FILE_CHANGE_TYPE
);
97 test_table(unit_file_preset_mode
, UNIT_FILE_PRESET
);
98 test_table(unit_file_state
, UNIT_FILE_STATE
);
99 test_table(unit_load_state
, UNIT_LOAD_STATE
);
100 test_table(unit_type
, UNIT_TYPE
);
101 test_table(locale_variable
, VARIABLE_LC
);
102 test_table(virtualization
, VIRTUALIZATION
);
104 test_table_sparse(object_compressed
, OBJECT_COMPRESSED
);