From dab52a0664a624c64f0fadbeb309fdea4ab62f35 Mon Sep 17 00:00:00 2001 From: Pagadarai Date: Wed, 29 Jan 2025 16:27:43 -0600 Subject: [PATCH] matlab bindings: Added test to check that library is loaded --- bindings/matlab/test/testLoadLibrary.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bindings/matlab/test/testLoadLibrary.m diff --git a/bindings/matlab/test/testLoadLibrary.m b/bindings/matlab/test/testLoadLibrary.m new file mode 100644 index 000000000..61c40fe78 --- /dev/null +++ b/bindings/matlab/test/testLoadLibrary.m @@ -0,0 +1,10 @@ +if isunix + hfile = '/usr/share/libiio/matlab/iio-wrapper.h'; + loadlibraryArgs = {hfile,'includepath','/usr/local/include','addheader','iio.h'}; + [a2, b2] = loadlibrary('libiio', loadlibraryArgs{:}); + libfunctions('libiio') +elseif ispc + % Code to run on Windows platform +end + + \ No newline at end of file