ExampleCategoryF32.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include "Test.h"
  2. #include "Pattern.h"
  3. /*
  4. Code below is generic. Only the name of the class must be customized and
  5. correspond to what is used for the test suite.
  6. */
  7. #include "dsp/basic_math_functions.h"
  8. class ExampleCategoryF32:public Client::Suite
  9. {
  10. public:
  11. ExampleCategoryF32(Testing::testID_t id);
  12. virtual void setUp(Testing::testID_t,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr);
  13. virtual void tearDown(Testing::testID_t,Client::PatternMgr *mgr);
  14. private:
  15. #include "ExampleCategoryF32_decl.h"
  16. /*
  17. Code below must be customized and depends on the tests.
  18. There are always some input patterns, some reference patterns
  19. and some output or temporary storage.
  20. If any dynamical memory is required it should be done only by using
  21. LocalPattern -> A temporary area where to save output of a test.
  22. */
  23. /* Input patterns */
  24. Client::Pattern<float32_t> input1;
  25. Client::Pattern<float32_t> input2;
  26. /* Output and temporary storage */
  27. Client::LocalPattern<float32_t> output;
  28. /* Reference patterns */
  29. Client::RefPattern<float32_t> ref;
  30. };