- Timestamp:
- May 9, 2008, 8:00:21 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/include/test.h
r82 r83 11 11 #endif 12 12 13 #define NB_ITERATION 1 14 #define CYCLE_MAX (1024*NB_ITERATION) 15 16 #include "Common/include/Test.h" 17 #include "Common/include/Time.h" 18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" 19 13 20 #include <string> 14 21 #include <iostream> 15 22 #include <sys/time.h> 16 17 #include "Common/include/Time.h"18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h"19 23 20 24 using namespace std; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/main.cpp
r82 r83 14 14 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 15 15 err (_("list_params is :\n")); 16 err (_(" * ()\n"));16 err (_(" * ()\n")); 17 17 18 18 exit (1); … … 31 31 32 32 string name = argv[x++]; 33 //const uint32_t size_data = atoi(argv[x++]);34 //const uint32_t nb_port = atoi(argv[x++]);35 33 36 34 int _return = EXIT_SUCCESS; … … 38 36 { 39 37 morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters 40 (//size_data, 41 //nb_port 38 ( 42 39 ); 43 40 … … 51 48 _return = EXIT_FAILURE; 52 49 } 53 catch (...) 50 51 try 54 52 { 55 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 53 if (_return == EXIT_SUCCESS) 54 TEST_OK("@COMPONENT : no error"); 55 else 56 TEST_KO("@COMPONENT : a lot of error"); 57 } 58 catch (morpheo::ErrorMorpheo & error) 59 { 60 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 56 61 _return = EXIT_FAILURE; 57 62 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/test.cpp
r82 r83 7 7 */ 8 8 9 #define NB_ITERATION 110 #define CYCLE_MAX (128*NB_ITERATION)11 12 9 #include "Behavioural/@DIRECTORY/SelfTest/include/test.h" 13 #include "Common/include/Test.h"14 10 #include "Behavioural/include/Allocation.h" 15 11 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/New_Component_allocation.cpp
r82 r83 25 25 ) 26 26 { 27 log_begin @COMPONENT,FUNCTION);27 log_begin(@COMPONENT,FUNCTION); 28 28 29 29 _component = new Component (_usage);
Note: See TracChangeset
for help on using the changeset viewer.