diff options
author | Justus Winter <[email protected]> | 2017-03-14 11:45:29 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-14 11:45:29 +0000 |
commit | d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3 (patch) | |
tree | 47bd14393769906e645190aec855fc91f4306d8d /tests/gpgme/run-tests.scm | |
parent | doc: Explain in README how to create /run/user directories. (diff) | |
download | gnupg-d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3.tar.gz gnupg-d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3.zip |
tests: Skip Python tests if the bindings are not built.
* tests/gpgme/wrap.scm (python): Move variable...
* tests/gpgme/gpgme-defs.scm (python): ... here.
(run-python-tests?): New function.
* tests/gpgme/run-tests.scm: Only run Python tests if the bindings can
be located in GPGME's build directory.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgme/run-tests.scm')
-rw-r--r-- | tests/gpgme/run-tests.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gpgme/run-tests.scm b/tests/gpgme/run-tests.scm index 72de49580..be70f178d 100644 --- a/tests/gpgme/run-tests.scm +++ b/tests/gpgme/run-tests.scm @@ -71,5 +71,7 @@ -- ,@(:path cmpnts)))) (if (null? tests) (all-tests makefile (:key cmpnts)) tests)))) `((("tests" "gpg") "c_tests" ,setup-c) - (("lang" "python" "tests") "py_tests" ,setup-py) + ,@(if (run-python-tests?) + `((("lang" "python" "tests") "py_tests" ,setup-py)) + '()) (("lang" "qt" "tests") "TESTS" ,setup-c)))))) |