summaryrefslogtreecommitdiffstats
path: root/src/vnet/vnet_msg_enum.h
blob: 9899471ecd35835ce8cac9d912fb38b55a4dac57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef included_vnet_msg_enum_h
#define included_vnet_msg_enum_h

#include <vppinfra/byte_order.h>

#define vl_msg_id(n,h) n,
typedef enum
{
  VL_ILLEGAL_MESSAGE_ID = 0,
#include <vnet/vnet_all_api_h.h>
  VL_MSG_FIRST_AVAILABLE,
} vl_msg_id_t;
#undef vl_msg_id

#endif /* included_vnet_msg_enum_h */

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */
.startswith("test_") or not _f.endswith(".py"): continue name = "".join(f.split("/")[-1].split(".")[:-1]) if name in sys.modules: raise Exception("Duplicate test module `%s' found!" % name) module = importlib.import_module(name) for name, cls in module.__dict__.items(): if not isinstance(cls, type): continue if not issubclass(cls, unittest.TestCase): continue if name == "VppTestCase" or name.startswith("Template"): continue for method in dir(cls): if not callable(getattr(cls, method)): continue if method.startswith("test_"): callback(_f, cls, method) def print_callback(file_name, cls, method): print("%s.%s.%s" % (file_name, cls.__name__, method)) if __name__ == '__main__': parser = argparse.ArgumentParser(description="Discover VPP unit tests") parser.add_argument("-d", "--dir", action='append', type=str, help="directory containing test files " "(may be specified multiple times)") args = parser.parse_args() if args.dir is None: args.dir = "." suite = unittest.TestSuite() for d in args.dir: discover_tests(d, print_callback)