diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-11-21 11:06:58 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-12-09 11:25:23 -0800 |
commit | 992b31d23414e019735b87a0ed5e458711dffb6b (patch) | |
tree | ad64861401eddc4b62a5f2e4d4cec10da9cb81bd /host/tests/devtest/benchmark_rate_test.py | |
parent | bb65a50ce5668288111289b6611035d3f5883172 (diff) | |
download | uhd-992b31d23414e019735b87a0ed5e458711dffb6b.tar.gz uhd-992b31d23414e019735b87a0ed5e458711dffb6b.tar.bz2 uhd-992b31d23414e019735b87a0ed5e458711dffb6b.zip |
devtest: dont check number of samples in benchmark rate test and accept
10 underruns in SISO
Diffstat (limited to 'host/tests/devtest/benchmark_rate_test.py')
-rwxr-xr-x | host/tests/devtest/benchmark_rate_test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/tests/devtest/benchmark_rate_test.py b/host/tests/devtest/benchmark_rate_test.py index 6c5a75d7f..1fc342b7f 100755 --- a/host/tests/devtest/benchmark_rate_test.py +++ b/host/tests/devtest/benchmark_rate_test.py @@ -39,7 +39,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case): We always run both tx and rx. """ - rel_samp_err_threshold = 0.1 # 10% off is still quite generous + # rel_samp_err_threshold = 0.1 # 10% off is still quite generous samp_rate = test_args.get('rate', 1e6) duration = test_args.get('duration', 1) chan = test_args.get('chan', '0') @@ -56,6 +56,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case): if 'tx' in test_args.get('direction', ''): args.append('--tx_rate') args.append(str(samp_rate)) + if 'rx' in test_args.get('direction', ''): args.append('--rx_rate') args.append(str(samp_rate)) @@ -63,7 +64,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case): match = re.search(r'(Num received samples):\s*(.*)', app.stdout) run_results['num_rx_samples'] = int(match.group(2)) if match else -1 if run_results['num_rx_samples'] != -1: - run_results['rel_rx_samples_error'] = 1.0 * abs(run_results['num_rx_samples'] - expected_samples) / expected_samples + run_results['rel_rx_samples_error'] = 1.0 * abs(run_results['num_rx_samples'] - test_args.get('rx_buffer',0) - expected_samples) / expected_samples else: run_results['rel_rx_samples_error'] = 100 match = re.search(r'(Num dropped samples):\s*(.*)', app.stdout) @@ -73,7 +74,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case): match = re.search(r'(Num transmitted samples):\s*(.*)', app.stdout) run_results['num_tx_samples'] = int(match.group(2)) if match else -1 if run_results['num_tx_samples'] != -1: - run_results['rel_tx_samples_error'] = 1.0 * abs(run_results['num_tx_samples'] - expected_samples) / expected_samples + 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) @@ -90,9 +91,8 @@ class uhd_benchmark_rate_test(uhd_example_test_case): run_results['num_rx_samples'] > 0, run_results['num_tx_samples'] > 0, run_results['num_timeouts'] == 0, - run_results['rel_rx_samples_error'] < rel_samp_err_threshold, - run_results['rel_tx_samples_error'] < rel_samp_err_threshold, + # run_results['rel_rx_samples_error'] < rel_samp_err_threshold, + # run_results['rel_tx_samples_error'] < rel_samp_err_threshold, ]) self.report_example_results(test_name, run_results) return run_results - |