File: test-util.h

package info (click to toggle)
mptcpd 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,612 kB
  • sloc: ansic: 9,472; sh: 5,154; makefile: 467; cpp: 61
file content (29 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (3)
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
// SPDX-License-Identifier: BSD-3-Clause
/**
 * @file test-util.h
 *
 * @brief mptcpd test utilities library.
 *
 * Copyright (c) 2020, 2022, Intel Corporation
 */

#ifndef MPTCP_TEST_UTIL_H
#define MPTCP_TEST_UTIL_H


/// Get MPTCP path management generic netlink API family name.
char const *tests_get_pm_family_name(void);

/**
 * @brief Exit test process if the kernel does not support MPTCP.
 *
 * If the kernel does not support MPTCP exit the current test process
 * with an exit status suitable for making the Automake @c test-driver
 * script interpret the test result as @c SKIP instead of @c PASS or
 * @c FAIL.  This is useful for tests that need MPTCP but are run on
 * platforms with a non-MPTCP capable kernel.
 */
void tests_skip_if_no_mptcp(void);


#endif  // MPTCP_TEST_UTIL_H