diff options
author | Justus Winter <[email protected]> | 2017-03-09 13:33:02 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-09 13:33:02 +0000 |
commit | 046a15a88c83b40a753b4ad7ecc1456efa5b527f (patch) | |
tree | 4c62f08c2492927452078f11814207683eb05286 /tests/gpgme/run-tests.scm | |
parent | tests: Rework environment setup. (diff) | |
download | gnupg-046a15a88c83b40a753b4ad7ecc1456efa5b527f.tar.gz gnupg-046a15a88c83b40a753b4ad7ecc1456efa5b527f.zip |
tests: Run the tests for the Python bindings of GPGME.
* tests/gpgme/gpgme-defs.scm (create-file): Write lines.
(create-gpgmehome): Extend function to create the right environment
for the Python tests.
* tests/gpgme/run-tests.scm: Make an environment cache for the Python
tests and enable them.
* tests/gpgme/wrap.scm: Do not hardcode the path of the Python
interpreter.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tests/gpgme/run-tests.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/gpgme/run-tests.scm b/tests/gpgme/run-tests.scm index 4d3a7e683..72de49580 100644 --- a/tests/gpgme/run-tests.scm +++ b/tests/gpgme/run-tests.scm @@ -40,7 +40,11 @@ run-tests-parallel run-tests-sequential)) (setup-c (make-environment-cache - (test::scm #f "setup.scm" (in-srcdir "setup.scm") "--" "tests" "gpg"))) + (test::scm #f "setup.scm (tests/gpg)" (in-srcdir "setup.scm") + "--" "tests" "gpg"))) + (setup-py (make-environment-cache + (test::scm #f "setup.scm (lang/python/tests)" (in-srcdir "setup.scm") + "--" "lang" "python" "tests"))) (tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*))) (runner (apply @@ -67,6 +71,5 @@ -- ,@(:path cmpnts)))) (if (null? tests) (all-tests makefile (:key cmpnts)) tests)))) `((("tests" "gpg") "c_tests" ,setup-c) - ;; XXX: Not yet. - ;; (("lang" "python" "tests") "py_tests") + (("lang" "python" "tests") "py_tests" ,setup-py) (("lang" "qt" "tests") "TESTS" ,setup-c)))))) |