blob: 043a38a13f8c3e804a9992f06d6f25b5dbc641d4 (
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
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 NXP
*/
#include <rte_common.h>
#include <rte_mbuf.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_dev.h>
#include <rte_rawdev.h>
#include <rte_bus_vdev.h>
#include "test.h"
static int
test_rawdev_selftest_impl(const char *pmd, const char *opts)
{
rte_vdev_init(pmd, opts);
return rte_rawdev_selftest(rte_rawdev_get_dev_id(pmd));
}
static int
test_rawdev_selftest_skeleton(void)
{
return test_rawdev_selftest_impl("rawdev_skeleton", "");
}
REGISTER_TEST_COMMAND(rawdev_autotest, test_rawdev_selftest_skeleton);
|