X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest-crypto-perf%2Fcperf_test_verify.h;fp=app%2Ftest%2Ftest_prefetch.c;h=3fa78ee6ae1b80c9be6845106fa422b35199d6ba;hb=7595afa4d30097c1177b69257118d8ad89a539be;hp=80afaaf345b36774566fdb52d403c129ee289d25;hpb=ce3d555e43e3795b5d9507fcfc76b7a0a92fd0d6;p=deb_dpdk.git 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 80afaaf3..3fa78ee6 100644 --- a/app/test/test_prefetch.c +++ b/app/test-crypto-perf/cperf_test_verify.h @@ -1,8 +1,7 @@ /*- * 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 @@ -31,31 +30,29 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#ifndef _CPERF_VERIFY_ +#define _CPERF_VERIFY_ + #include -#include +#include -#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_ */