diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-07 08:38:58 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-08 07:58:51 -0600 |
commit | be588b148359463031429e0201783b9e1f095131 (patch) | |
tree | 7dff1545b5d83f7320c62904e6db13eb2deecc3a /README.md | |
parent | 7e8c52d80793e4f406177e82602cdf293a8a7fa8 (diff) | |
download | uhd-be588b148359463031429e0201783b9e1f095131.tar.gz uhd-be588b148359463031429e0201783b9e1f095131.tar.bz2 uhd-be588b148359463031429e0201783b9e1f095131.zip |
tests: Fix converter benchmark disable on Boost <1.68
Boost versions prior to 1.68 appear to have a bug where a decorator to
denote a test as disabled is not honored when affixed to a data-driven
test case, which is how the benchmarks in convert_test are skipped when
the unit test is run. (The tests take some time to complete and we don't
want them running with every CI pass.)
This commit adds an alternative benchmark skipping mechanism when Boost
<1.68 is used. The benchmark test cases perform a runtime check for the
user-provided `--benchmark` command-line option. If not found, the test
case returns prematurely. If found, the test case will execute. Note
that because `--benchmark` is a command-line option specific to this
test, and not to Boost, the options must follow `--` in the command
line in order to take effect: `convert_test -- --benchmark`.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions