Commit a9997dcd authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

smartbits-tester: implementing the rest of performance tests

parent 62390602
This diff is collapsed.
......@@ -40,6 +40,9 @@ extern const char* TLIST[16];
#define TEST_WARNING 1
#define TEST_FAILED 0
#define NEXT_STEP 1
#define NONEXT_STEP 0
#define TEST_FUNCTIONAL 0
#define TEST_PERFORMANCE 1
......@@ -61,7 +64,8 @@ struct smb_port_tx {
int fsize_stop;
int fsize_tab[FSIZE_MAXTAB];
int fsize_n;
int fload[FLOAD_MAXTAB]; //traffic load [1..100]%
int fload; /* currently used frame load */
int fload_tab[FLOAD_MAXTAB]; //traffic load tab to test[1..100]%
int fload_n;
int fnum; //amount of frames sent in a single burst
};
......@@ -79,11 +83,14 @@ struct smb_test {
int variants;
int ftime; //length of burst in seconds
int test_type;
int permute;
int force_prst; // force ports reset for each tested load/size
};
void init_wr_tests(int num, int variant);
int run_test( HTCountStructure *cntrs, int fload_idx, char mac[][6] );
int run_test( HTCountStructure *cntrs, char mac[][6] );
int anl_result( HTCountStructure *cntrs, int testno);
int run_and_analyze(int test_no, FILE *logfile);
int next_testcase(int reset);
#endif
......@@ -55,8 +55,9 @@ int main()
return -1;
}
for(test_no=0; test_no<6; ++test_no) {
//for(test_no=TEST_3_1_1; test_no<TEST_3_1_1+1; ++test_no) {
for(test_no=TEST_3_3_1; test_no<=TEST_3_3_2; ++test_no) {
//for(test_no=TEST_3_1_1; test_no<TEST_3_3_2+1; ++test_no) {
//for(test_no=TEST_3_1_4; test_no<TEST_3_1_4+1; ++test_no) {
//test_no = TEST_2_2_2;
result = run_and_analyze(test_no, logfile);
switch (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment