aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-12-10 17:03:46 +0100
committerAndreas Schneider <asn@samba.org>2015-12-10 21:13:39 +0100
commitd98750e7294a50262629d11162e23a927688252a (patch)
tree4db2d301fcd70c8cb44b33fb0849fd22db6f39c0
parentfbb0abf45e8673f88d07b87abfecf8bad9f8634d (diff)
downloadpam_wrapper-d98750e7294a50262629d11162e23a927688252a.tar.gz
pam_wrapper-d98750e7294a50262629d11162e23a927688252a.tar.xz
pam_wrapper-d98750e7294a50262629d11162e23a927688252a.zip
tests: Do not run python test if python is not present
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--tests/CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0055280..30f0eb2 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -47,9 +47,11 @@ set_property(
PROPERTY
ENVIRONMENT ${TEST_ENVIRONMENT})
-add_test(pypamtest_test ${CMAKE_CURRENT_SOURCE_DIR}/pypamtest_test.py)
-set_property(
- TEST
- pypamtest_test
- PROPERTY
- ENVIRONMENT ${TEST_ENVIRONMENT})
+if (PYTHONLIBS_FOUND)
+ add_test(pypamtest_test ${CMAKE_CURRENT_SOURCE_DIR}/pypamtest_test.py)
+ set_property(
+ TEST
+ pypamtest_test
+ PROPERTY
+ ENVIRONMENT ${TEST_ENVIRONMENT})
+endif()