mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <justus@g10code.com>
This commit is contained in:
parent
cca91a3f8f
commit
046a15a88c
3 changed files with 51 additions and 15 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue