aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/svs/svs_all_api_h.h
blob: dff1657468fcd3897e805b116c866b8cacf6f7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2018 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.
 */
/* Include the generated file, see BUILT_SOURCES in Makefile.am */

#include <svs/svs.api.h>
"p">).tearDownClass() def setUp(self): super(TestString, self).setUp() def tearDown(self): super(TestString, self).tearDown() def test_string_unittest(self): """ String unit tests """ names = ["memcpy_s", "clib_memcmp", "clib_memcpy", "clib_memset", "clib_strcat", "clib_strcmp", "clib_strcpy", "clib_strncat", "clib_strncmp", "clib_strncpy", "clib_strnlen", "clib_strstr", "clib_strtok", "memcmp_s", "memcpy_s", "memset_s ", "strcat_s", "strcmp_s", "strcpy_s", "strncat_s", "strncmp_s", "strncpy_s", "strnlen_s", "strstr_s", "strtok_s"] for name in names: error = self.vapi.cli("test string " + name) if error.find("failed") != -1: self.logger.critical("FAILURE in the " + name + " test") self.assertNotIn("failed", error) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)