diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-13 14:23:24 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-13 14:23:24 -0400 |
commit | e73c2368c9a9b41ac725a45a933cc038b8fe465c (patch) | |
tree | b0e49269df65251ab9eb8893be1ed0cd9e893f2d /src/grp-network/test-network-tables.c | |
parent | b3c36bc62472b56f30ef88b1e0532f83204c7c79 (diff) |
./tools/notsd-move
Diffstat (limited to 'src/grp-network/test-network-tables.c')
-rw-r--r-- | src/grp-network/test-network-tables.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/grp-network/test-network-tables.c b/src/grp-network/test-network-tables.c new file mode 100644 index 0000000000..366471e8bd --- /dev/null +++ b/src/grp-network/test-network-tables.c @@ -0,0 +1,26 @@ +#include "ethtool-util.h" +#include "networkd-netdev-bond.h" +#include "networkd-netdev-macvlan.h" +#include "networkd.h" +#include "sd-netlink/netlink-internal.h" +#include "shared/test-tables.h" +#include "systemd-network/dhcp6-internal.h" +#include "systemd-network/dhcp6-protocol.h" + +int main(int argc, char **argv) { + test_table(bond_mode, NETDEV_BOND_MODE); + /* test_table(link_state, LINK_STATE); — not a reversible mapping */ + test_table(link_operstate, LINK_OPERSTATE); + test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN); + test_table(netdev_kind, NETDEV_KIND); + test_table(dhcp6_message_status, DHCP6_STATUS); + test_table(duplex, DUP); + test_table(wol, WOL); + test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA); + + test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE); + test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE); + test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE); + + return EXIT_SUCCESS; +} |