From 8b080a8a14e943e998b9c301106456e41d176207 Mon Sep 17 00:00:00 2001 From: Toni Jones Date: Tue, 5 Mar 2019 11:09:12 -0600 Subject: 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. --- mpm/python/tests/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 mpm/python/tests/CMakeLists.txt (limited to 'mpm/python/tests/CMakeLists.txt') 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} +) -- cgit v1.2.3