]> git.proxmox.com Git - mirror_frr.git/blame - tests/lib/test_plist.c
Merge pull request #12816 from gpnaveen/stc_rte_err_msg
[mirror_frr.git] / tests / lib / test_plist.c
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
fa8e714a
DL
2/*
3 * Simple prefix list querying tool
4 *
5 * Copyright (C) 2021 by David Lamparter,
6 * for Open Source Routing / NetDEF, Inc.
fa8e714a
DL
7 */
8
9#include <zebra.h>
10
11#include "lib/plist.h"
12#include "lib/filter.h"
13#include "tests/lib/cli/common_cli.h"
14
15static const struct frr_yang_module_info *const my_yang_modules[] = {
16 &frr_filter_info,
17 NULL,
18};
19
20__attribute__((_CONSTRUCTOR(2000)))
21static void test_yang_modules_set(void)
22{
23 test_yang_modules = my_yang_modules;
24}
25
26void test_init(int argc, char **argv)
27{
28 prefix_list_init();
29 filter_cli_init();
30
31 /* nothing else to do here, giving stand-alone access to the prefix
32 * list code's "debug prefix-list ..." command is the only purpose of
33 * this "test".
34 */
35}