Skip to content

Commit

Permalink
Add unidimensional stress test with 127 agents
Browse files Browse the repository at this point in the history
Change-Id: I72b9a143305a62ab5870955007fe5f4e29211dd5
Partial-Bug: 1464016
  • Loading branch information
Nischal Sheth committed Jul 8, 2015
1 parent 0e2f30f commit 6398314
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bgp/test/SConscript
Expand Up @@ -493,6 +493,7 @@ if 'BGP_STRESS_TEST_SUITE' in envs and envs['BGP_STRESS_TEST_SUITE'] != "0":
env.UnitTest('bgp_stress_test4', ['bgp_stress_test4.cc']),
env.UnitTest('bgp_stress_test5', ['bgp_stress_test5.cc']),
env.UnitTest('bgp_stress_test6', ['bgp_stress_test6.cc']),
env.UnitTest('bgp_stress_test7', ['bgp_stress_test7.cc']),
]))

Return('test_suite')
Expand Down
23 changes: 23 additions & 0 deletions src/bgp/test/bgp_stress_test7.cc
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/

#define __BGP_STRESS_TEST_SUITE__
#include "bgp_stress_test.cc"

// Unidimensional test with maximum allowed agents
int main(int argc, char **argv) {

// Give more time for TASK_UTIL_EXPECT_* to timeout.
setenv("TASK_UTIL_RETRY_COUNT", "60000", false);
setenv("TASK_UTIL_DEFAULT_WAIT_TIME", "10000", false);
setenv("WAIT_FOR_IDLE", "120", false);

const char *largv[] = {
__FILE__, "--log-disable",

"--nagents=127",
};

return bgp_stress_test_main(sizeof(largv)/sizeof(largv[0]), largv);
}

0 comments on commit 6398314

Please sign in to comment.