]> git.proxmox.com Git - systemd.git/blame - src/test/test-tables.c
New upstream version 236
[systemd.git] / src / test / test-tables.c
CommitLineData
52ad194e 1/* SPDX-License-Identifier: LGPL-2.1+ */
14228c0d
MB
2/***
3 This file is part of systemd
4
5 Copyright 2013 Zbigniew Jędrzejewski-Szmek
6
7 systemd is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
11
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
19***/
20
db2df898 21#include "architecture.h"
14228c0d
MB
22#include "automount.h"
23#include "cgroup.h"
5eef597e 24#include "compress.h"
14228c0d
MB
25#include "condition.h"
26#include "device.h"
27#include "execute.h"
14228c0d
MB
28#include "install.h"
29#include "job.h"
db2df898 30#include "journald-server.h"
14228c0d 31#include "kill.h"
db2df898
MP
32#include "link-config.h"
33#include "locale-util.h"
14228c0d
MB
34#include "log.h"
35#include "logs-show.h"
36#include "mount.h"
14228c0d 37#include "path.h"
db2df898 38#include "rlimit-util.h"
14228c0d
MB
39#include "scope.h"
40#include "service.h"
41#include "slice.h"
14228c0d
MB
42#include "socket-util.h"
43#include "socket.h"
44#include "swap.h"
45#include "target.h"
db2df898 46#include "test-tables.h"
14228c0d
MB
47#include "timer.h"
48#include "unit-name.h"
49#include "unit.h"
50#include "util.h"
8a584da2 51#include "virt.h"
14228c0d
MB
52
53int main(int argc, char **argv) {
5eef597e 54 test_table(architecture, ARCHITECTURE);
14228c0d
MB
55 test_table(automount_result, AUTOMOUNT_RESULT);
56 test_table(automount_state, AUTOMOUNT_STATE);
57 test_table(cgroup_device_policy, CGROUP_DEVICE_POLICY);
58 test_table(condition_type, CONDITION_TYPE);
f47781d8
MP
59 test_table(assert_type, CONDITION_TYPE);
60 test_table(condition_result, CONDITION_RESULT);
14228c0d
MB
61 test_table(device_state, DEVICE_STATE);
62 test_table(exec_input, EXEC_INPUT);
63 test_table(exec_output, EXEC_OUTPUT);
8a584da2 64 test_table(emergency_action, EMERGENCY_ACTION);
14228c0d
MB
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);
71 test_table(log_target, LOG_TARGET);
5eef597e
MP
72 test_table(mac_policy, MACPOLICY);
73 test_table(manager_state, MANAGER_STATE);
14228c0d
MB
74 test_table(mount_exec_command, MOUNT_EXEC_COMMAND);
75 test_table(mount_result, MOUNT_RESULT);
76 test_table(mount_state, MOUNT_STATE);
5eef597e 77 test_table(name_policy, NAMEPOLICY);
14228c0d
MB
78 test_table(notify_access, NOTIFY_ACCESS);
79 test_table(output_mode, OUTPUT_MODE);
80 test_table(path_result, PATH_RESULT);
81 test_table(path_state, PATH_STATE);
82 test_table(path_type, PATH_TYPE);
5eef597e
MP
83 test_table(protect_home, PROTECT_HOME);
84 test_table(protect_system, PROTECT_SYSTEM);
85 test_table(rlimit, RLIMIT);
14228c0d
MB
86 test_table(scope_result, SCOPE_RESULT);
87 test_table(scope_state, SCOPE_STATE);
88 test_table(service_exec_command, SERVICE_EXEC_COMMAND);
89 test_table(service_restart, SERVICE_RESTART);
90 test_table(service_result, SERVICE_RESULT);
91 test_table(service_state, SERVICE_STATE);
92 test_table(service_type, SERVICE_TYPE);
93 test_table(slice_state, SLICE_STATE);
14228c0d
MB
94 test_table(socket_address_bind_ipv6_only, SOCKET_ADDRESS_BIND_IPV6_ONLY);
95 test_table(socket_exec_command, SOCKET_EXEC_COMMAND);
96 test_table(socket_result, SOCKET_RESULT);
97 test_table(socket_state, SOCKET_STATE);
5eef597e
MP
98 test_table(split_mode, SPLIT);
99 test_table(storage, STORAGE);
14228c0d
MB
100 test_table(swap_exec_command, SWAP_EXEC_COMMAND);
101 test_table(swap_result, SWAP_RESULT);
102 test_table(swap_state, SWAP_STATE);
14228c0d
MB
103 test_table(target_state, TARGET_STATE);
104 test_table(timer_base, TIMER_BASE);
105 test_table(timer_result, TIMER_RESULT);
106 test_table(timer_state, TIMER_STATE);
107 test_table(unit_active_state, UNIT_ACTIVE_STATE);
108 test_table(unit_dependency, UNIT_DEPENDENCY);
109 test_table(unit_file_change_type, UNIT_FILE_CHANGE_TYPE);
5eef597e 110 test_table(unit_file_preset_mode, UNIT_FILE_PRESET);
14228c0d
MB
111 test_table(unit_file_state, UNIT_FILE_STATE);
112 test_table(unit_load_state, UNIT_LOAD_STATE);
113 test_table(unit_type, UNIT_TYPE);
f47781d8 114 test_table(locale_variable, VARIABLE_LC);
8a584da2 115 test_table(virtualization, VIRTUALIZATION);
14228c0d 116
5eef597e
MP
117 test_table_sparse(object_compressed, OBJECT_COMPRESSED);
118
14228c0d
MB
119 return EXIT_SUCCESS;
120}