aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-03-01 16:32:02 -0800
committerMartin Braun <martin.braun@ettus.com>2018-03-14 15:18:00 -0700
commitedd624e903822bdc446e42f37e8d5aee8f6c31cc (patch)
tree9fde5c25d903ae2b9f6b1ed2dc7f7fe0d1be7a17 /host/tests/devtest
parent6652eb4a033b38bd952563f3544eb11e98f27327 (diff)
downloaduhd-edd624e903822bdc446e42f37e8d5aee8f6c31cc.tar.gz
uhd-edd624e903822bdc446e42f37e8d5aee8f6c31cc.tar.bz2
uhd-edd624e903822bdc446e42f37e8d5aee8f6c31cc.zip
examples: Update benchmark_rate (more stats, timestamps)
- Messages are all timestamped, enables better understanding of the output log - Less usage of Boost - More stats (differentiate between RX and TX timeouts and sequence errors)
Diffstat (limited to 'host/tests/devtest')
-rwxr-xr-xhost/tests/devtest/benchmark_rate_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/tests/devtest/benchmark_rate_test.py b/host/tests/devtest/benchmark_rate_test.py
index 4fac05d97..3d8ba3938 100755
--- a/host/tests/devtest/benchmark_rate_test.py
+++ b/host/tests/devtest/benchmark_rate_test.py
@@ -67,12 +67,12 @@ class uhd_benchmark_rate_test(uhd_example_test_case):
run_results['rel_tx_samples_error'] = 1.0 * abs(run_results['num_tx_samples'] - test_args.get('tx_buffer',0) - expected_samples) / expected_samples
else:
run_results['rel_tx_samples_error'] = 100
- match = re.search(r'(Num sequence errors):\s*(.*)', app.stdout)
+ match = re.search(r'(Num sequence errors \(Tx\)):\s*(.*)', app.stdout)
run_results['num_tx_seqerrs'] = int(match.group(2)) if match else -1
match = re.search(r'(Num underflows detected):\s*(.*)', app.stdout)
run_results['num_tx_underruns'] = int(match.group(2)) if match else -1
- match = re.search(r'(Num timeouts):\s*(.*)', app.stdout)
- run_results['num_timeouts'] = int(match.group(2)) if match else -1
+ match = re.search(r'(Num timeouts \(Rx\)):\s*(.*)', app.stdout)
+ run_results['num_timeouts_rx'] = int(match.group(2)) if match else -1
run_results['passed'] = all([
run_results['return_code'] == 0,
run_results['num_rx_dropped'] == 0,
@@ -80,7 +80,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case):
run_results['num_tx_underruns'] <= test_args.get('acceptable-underruns', 0),
run_results['num_rx_samples'] > 0,
run_results['num_tx_samples'] > 0,
- run_results['num_timeouts'] == 0,
+ run_results['num_timeouts_rx'] == 0,
# run_results['rel_rx_samples_error'] < rel_samp_err_threshold,
# run_results['rel_tx_samples_error'] < rel_samp_err_threshold,
])