/*-
* 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
* 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 <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_ */