diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-09 22:29:24 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-16 19:00:03 -0400 |
commit | 86bbe5bfbc0bf213e9d3fafbe6c64d59b9fc90ea (patch) | |
tree | 0441ba165b32024320d62b04e38e26fdf9e05339 /src/network/test-network-tables.c | |
parent | e46eab86cd119b04ac14f5a2b404a614ae350016 (diff) |
test-tables: add new entries
One missing string found.
A few things had to be moved around to make it possible to test them.
Diffstat (limited to 'src/network/test-network-tables.c')
-rw-r--r-- | src/network/test-network-tables.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/network/test-network-tables.c b/src/network/test-network-tables.c new file mode 100644 index 0000000000..6f6bb37fc4 --- /dev/null +++ b/src/network/test-network-tables.c @@ -0,0 +1,26 @@ +#include "networkd.h" +#include "networkd-netdev-bond.h" +#include "networkd-netdev-macvlan.h" +#include "dhcp6-internal.h" +#include "dhcp6-protocol.h" +#include "rtnl-internal.h" +#include "ethtool-util.h" + +#include "test-tables.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(dhcp_support, DHCP_SUPPORT); + 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(dhcp6_message_type, DHCP6_MESSAGE); + + return EXIT_SUCCESS; +} |