diff options
| author | Toni Jones <toni.jones@ni.com> | 2019-03-05 11:09:12 -0600 |
|---|---|---|
| committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-03-26 15:15:05 -0700 |
| commit | 8b080a8a14e943e998b9c301106456e41d176207 (patch) | |
| tree | 721757e55b073c28fd89892d1d074ecd689a0f54 /mpm/python/tests/CMakeLists.txt | |
| parent | 0e0a30595479d1ebd589355a7ee77968e6e927a4 (diff) | |
| download | uhd-8b080a8a14e943e998b9c301106456e41d176207.tar.gz uhd-8b080a8a14e943e998b9c301106456e41d176207.tar.bz2 uhd-8b080a8a14e943e998b9c301106456e41d176207.zip | |
cmake: Add unit testing framework to MPM
Add unit testing framework to MPM which can be run by calling
"make test". The testing is done using the built in unittest Python
module. Tests can be run on a dev machine or on the USRP itself when
compiling natively.
Diffstat (limited to 'mpm/python/tests/CMakeLists.txt')
| -rwxr-xr-x | mpm/python/tests/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mpm/python/tests/CMakeLists.txt b/mpm/python/tests/CMakeLists.txt new file mode 100755 index 000000000..26dcad40a --- /dev/null +++ b/mpm/python/tests/CMakeLists.txt @@ -0,0 +1,14 @@ +# +# Copyright 2019 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: GPL-3.0-or-later +# + +######################################################################## +# This file included, use CMake directory variables +######################################################################## + +add_test( + NAME mpm_unit_tests + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/run_unit_tests.py ${MPM_DEVICE} +) |
