Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Imported Upstream version 17.05
[deb_dpdk.git]
/
app
/
test-crypto-perf
/
cperf_test_verify.h
diff --git
a/app/test/test_prefetch.c
b/app/test-crypto-perf/cperf_test_verify.h
similarity index 74%
rename from
app/test/test_prefetch.c
rename to
app/test-crypto-perf/cperf_test_verify.h
index
80afaaf
..
3fa78ee
100644
(file)
--- a/
app/test/test_prefetch.c
+++ b/
app/test-crypto-perf/cperf_test_verify.h
@@
-1,8
+1,7
@@
/*-
* BSD LICENSE
*
/*-
* BSD LICENSE
*
- * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- * All rights reserved.
+ * Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@
-31,31
+30,29
@@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdio.h>
+#ifndef _CPERF_VERIFY_
+#define _CPERF_VERIFY_
+
#include <stdint.h>
#include <stdint.h>
-#include <rte_
prefetch
.h>
+#include <rte_
mbuf
.h>
-#include "test.h"
+#include "cperf.h"
+#include "cperf_ops.h"
+#include "cperf_options.h"
+#include "cperf_test_vectors.h"
-/*
- * Prefetch test
- * =============
- *
- * - Just test that the macro can be called and validate the compilation.
- * The test always return success.
- */
-static int
-test_prefetch(void)
-{
- int a;
+void *
+cperf_verify_test_constructor(uint8_t dev_id, uint16_t qp_id,
+ const struct cperf_options *options,
+ const struct cperf_test_vector *test_vector,
+ const struct cperf_op_fns *ops_fn);
- rte_prefetch0(&a);
- rte_prefetch1(&a);
- rte_prefetch2(&a);
+int
+cperf_verify_test_runner(void *test_ctx);
- return 0;
-}
+void
+cperf_verify_test_destructor(void *test_ctx);
-REGISTER_TEST_COMMAND(prefetch_autotest, test_prefetch);
+#endif /* _CPERF_VERIFY_ */