Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Testing
Commits
a9997dcd
Commit
a9997dcd
authored
May 12, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smartbits-tester: implementing the rest of performance tests
parent
62390602
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
389 additions
and
105 deletions
+389
-105
tests_body.c
sw/smartbits-tester/tests_body.c
+377
-101
tests_body.h
sw/smartbits-tester/tests_body.h
+9
-2
wrs_smb.c
sw/smartbits-tester/wrs_smb.c
+3
-2
No files found.
sw/smartbits-tester/tests_body.c
View file @
a9997dcd
This diff is collapsed.
Click to expand it.
sw/smartbits-tester/tests_body.h
View file @
a9997dcd
...
...
@@ -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
sw/smartbits-tester/wrs_smb.c
View file @
a9997dcd
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment