2 * Copyright (c) 2017 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #include <vppinfra/maplog.h>
18 clib_maplog_main_t maplog_main;
27 test_maplog_main (unformat_input_t * input)
29 clib_maplog_main_t *mm = &maplog_main;
34 rv = clib_maplog_init (mm, "/tmp/maplog_test", 4096, sizeof (test_entry_t));
38 clib_warning ("clib_maplog_init returned %d", rv);
42 for (i = 0; i < 64 * 5; i++)
44 t = clib_maplog_get_entry (mm);
48 clib_maplog_close (mm);
55 main (int argc, char *argv[])
60 unformat_init_command_line (&i, argv);
61 ret = test_maplog_main (&i);
66 #endif /* CLIB_UNIX */
70 * fd.io coding-style-patch-verification: ON
73 * eval: (c-set-style "gnu")