From b11baff09f78a4a383f817ec35208ae8966ab832 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 2 Jan 2017 16:42:08 +0200 Subject: py: Reorganize source directory Separate the Python bindings sources from the test scripts. While at it, remove the unneeded run.sh script. Signed-off-by: Laurent Pinchart --- py/tests/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 py/tests/CMakeLists.txt (limited to 'py/tests/CMakeLists.txt') diff --git a/py/tests/CMakeLists.txt b/py/tests/CMakeLists.txt new file mode 100644 index 0000000..a670ed9 --- /dev/null +++ b/py/tests/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB PY_SRCS "*.py") +add_custom_target(pyextras SOURCES ${PY_SRCS}) + +add_test(NAME pytest COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/functest.py") +set_property(TEST pytest PROPERTY + ENVIRONMENT "PYTHONPATH=." "LD_LIBRARY_PATH=." +) -- cgit v1.2.3