Bob Lantz
6fdf8dcf2b
Try specifying timeout in pexpect.spawn() + adjust error msg
...
Unfortunately pexpect() seems to be timing out with a 30 second
timeout rather than the 600 seconds we are passing in. How
could this even be working normally? It is puzzling. We are
going to try specifying the timeout in the spawn() call.
Also if the test fails, we use %e format for readability.
2016-08-29 23:59:50 -07:00
Bob Lantz
dbba9dc711
Increase scratchnet timeout to see if it's just slow.
2016-08-29 13:00:04 -07:00
Bob Lantz
305651c006
Increase link delay to 2ms for more robust effect
...
With a 1 ms delay, the performance tests periodically fails
under nested virtualization, which is how we are testing it.
Increasing the delay should make the effect (lower TCP
data rates as latency increases, due to TCP's congestion
control algorithm) more pronounced and robust.
Conflicts:
examples/linearbandwidth.py
2016-08-25 05:03:17 -07:00
Bob Lantz
c359825be9
Reduce CPU so that iperf client is CPU bound
...
If we want to observe a monotonic affect, we should
make sure that we are in fact CPU limited where it
matters. In this case, we are CPU limiting the hosts,
and the iperf client uses a lot of CPU. We need to
reduce the CPU allocation so that iperf is in fact
CPU bound.
We also correct the CPU allocation so that the client
and server each receive 50% of the total. Previously
we were specifying the per-host CPU allocation, so
45% meant we were allocating 90% of the overall CPU,
which seems a bit confusing. On the other hand, now
at 40% each host gets 20% of the CPU, which could also
be considered slightly confusing!
Although the client transmit rate is going to be the
limiting factor, we still measure the received data
rate at the server, because that is more interesting
than the initial burst of buffering at the client.
Measuring at the server becomes more important as
we reduce the iperf time.
The output is also changed slightly, and the test has
been updated appropriately.
Conflicts:
examples/cpu.py
2016-08-25 00:13:52 -07:00
Bob Lantz
e113f8ed12
Add error message to shed light on why this sometimes fails
2016-02-02 23:32:03 -08:00
Bob Lantz
5dc15aeaaf
Tolerate slow startup/lost pings for now
...
In the long run we should troubleshoot the performance issue
on kvm/Ubuntu15, but for now we are relaxing the constraint.
Closes #593
2016-01-26 15:40:56 -08:00
Bob Lantz
0fac568a19
Rewrite tolerance to be saner (plus or minus 20%)
2016-01-22 13:52:15 -08:00
Bob Lantz
5365831de8
Use 0% loss when testing examples/simpleperf.py
...
Also clarified the code in test_simpleperf.py.
Fixes #590
2016-01-21 17:07:39 -08:00
Bob Lantz
5a530af189
Remove trailing whitespace. ;-/
2014-12-01 15:39:44 -08:00
Bob Lantz
e0bf8ece3c
Minor code cleanup
2014-11-23 17:17:21 -08:00
Bob Lantz
37bdf14b49
Rename examples.{intfOptions,multiLink} -> {intfoptions,multilink}
2014-11-23 17:11:06 -08:00
cody burkard
06d9e4bba7
add example and test for multiple links
2014-10-28 16:10:46 -07:00
lantz
b7999978f9
Merge pull request #409 from cdburkard/patches/cleanup_tests
...
if a test fails or exits with an error, run cleanup as a precaution
2014-10-13 18:06:44 -07:00
Bob Lantz
501eb4f916
Add more information for test condition failure
2014-10-13 13:52:43 -07:00
cody burkard
33d42e25e6
if a test fails or exits with an error, run cleanup as a precaution
2014-10-03 09:50:39 -07:00
cody burkard
7c5d2771f7
wait for sshd to start in example
2014-10-03 04:52:21 -07:00
Bob Lantz
9487cb508d
Fix typo
2014-09-29 19:57:26 -07:00
cody burkard
74857ba474
remove User Switch from linearBandwidth due to poor performance
2014-09-27 04:47:56 -07:00
cody burkard
54bd9e6112
continue to test cfs if rt is not enabled in kernel
2014-09-27 03:20:07 -07:00
lantz
5fc3f57ede
Merge pull request #386 from cdburkard/patches/cpu_test
...
Skip test_cpu.py if RT_GROUP_SCHED is not enabled
2014-09-25 14:19:55 -07:00
lantz
5789dae8be
Merge pull request #387 from cdburkard/patches/iperf_bw
...
use udp with iperf to measure loss. pings are not reliable
2014-09-25 14:17:09 -07:00
cody burkard
7eeaed992c
use udp with iperf to measure loss. pings are not reliable
2014-09-25 13:09:24 -07:00
cody burkard
f0ce6f501d
measure loss with udp iperf
2014-09-25 12:39:42 -07:00
cody burkard
823d1b9990
skip test if RT_GROUP_SCHED is not enabled
2014-09-25 10:16:55 -07:00
lantz
e4d49e6df7
Merge pull request #229 from mininet/devel/mobility-example
...
A simple mobility API and example
2014-09-22 12:31:31 -07:00
Brian O'Connor
57686d3149
Merge pull request #381 from cdburkard/examples/interfaces
...
adding example and test for intf.config()
2014-09-20 23:31:30 -07:00
cody burkard
706229da77
adding example and test for intf.config
2014-09-17 12:55:59 -07:00
cody burkard
3df3610199
adding sanity check for cluster edition
2014-09-09 22:30:20 -07:00
Brian O'Connor
05f3fbae73
Merge pull request #362 from mininet/devel/vlanhost
...
Adding VLANHost to Examples
2014-08-28 17:49:25 -07:00
Brian O'Connor
d334c1ccfe
adding test for vlanhost.py and adding vlantopo example
2014-08-28 02:48:46 -07:00
Brian O'Connor
aa4dfda44c
adding documentation and test for linuxrouter.py
2014-08-27 22:01:18 -07:00
Bob Lantz
dd6424fee8
Simple mobility example.
2014-08-26 19:55:48 -07:00
Brian O'Connor
cee62eb28e
adding natnet example test
2014-08-13 22:08:15 -07:00
Cody Burkard
29e5bee34e
fixed issue with AssertTrue and skip first test if using old OVS version
2014-06-10 22:15:49 -07:00
Cody
87b6021428
restructured code and added a test for the numberedports.py example
2014-05-29 17:26:40 -07:00
lantz
a722a3a110
Update test_simpleperf.py
...
Add spaces.
2014-01-28 15:21:48 -08:00
lantz
f2942a7f92
Merge pull request #253 from sieben/Simplify_chained_comparaison
...
OK...
2014-01-28 15:20:29 -08:00
Rémy Léone
e10703cd7b
fixup: unresolved_references
2013-12-20 14:46:38 +01:00
Rémy Léone
aee33863c8
fixup: Simplify_chained_comparaison
2013-12-20 14:41:22 +01:00
Bob Lantz
433d83221a
Fix typo
2013-09-19 04:12:04 -07:00
Bob Lantz
76a8a1637f
Clean up sshd.py and its test so it works on VirtualBox
2013-09-18 20:48:22 -07:00
Brian O'Connor
bfb560045c
add rm to sshd tests
2013-09-11 14:45:49 -07:00
Brian O'Connor
c5da46f125
added -quick options to skip long tests
2013-09-11 14:45:49 -07:00
Brian O'Connor
10fdd01dc8
fixed runner.py and added -v and -quick options
2013-09-11 14:45:48 -07:00
Brian O'Connor
1e9e781c12
changed 1% to 2% in test_limit.py
2013-09-11 14:45:48 -07:00
Brian O'Connor
24b38126ec
cleaned up and commented test_simpleperf.py
2013-09-11 14:45:48 -07:00
Brian O'Connor
3577a6989d
cleaned up and commented test_tree1024.py and test_treeping64.py
2013-09-11 14:45:48 -07:00
Brian O'Connor
48c49c54e2
cleaned up and commented test_sshd.py
2013-09-11 14:45:48 -07:00
Brian O'Connor
d4993c0ba4
cleaned up and commented test_scratchnet.py
2013-09-11 14:45:48 -07:00
Brian O'Connor
213b7c57ee
cleaned up and commented test_popen.py
2013-09-11 14:45:48 -07:00