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