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