gnu: check: Return #t from all phases.
* gnu/packages/check.scm (cmdtest, python-pytest-cov, python-fixtures) (python-pytest-localserver, python-pytest-flakes) (python2-coverage-test-runner, python-pylint, python-behave-web-api): Return #t from all phases, and use invoke where appropriate.
This commit is contained in:
parent
ee527187a6
commit
29594404a1
|
@ -250,7 +250,7 @@ a multi-paradigm automated test framework for C++ and Objective-C.")
|
||||||
;; the build environment. Hence assuming-failure test fails.
|
;; the build environment. Hence assuming-failure test fails.
|
||||||
(delete-file "yarn.tests/assuming-failure.script")
|
(delete-file "yarn.tests/assuming-failure.script")
|
||||||
(delete-file "yarn.tests/assuming-failure.stdout")
|
(delete-file "yarn.tests/assuming-failure.stdout")
|
||||||
(zero? (system* "python" "setup.py" "check")))))))
|
(invoke "python" "setup.py" "check"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python2-coverage-test-runner" ,python2-coverage-test-runner)))
|
`(("python2-coverage-test-runner" ,python2-coverage-test-runner)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -715,8 +715,8 @@ and many external plugins.")
|
||||||
;; options taken from tox.ini
|
;; options taken from tox.ini
|
||||||
;; TODO: make "--restructuredtext" tests pass. They currently fail
|
;; TODO: make "--restructuredtext" tests pass. They currently fail
|
||||||
;; with "Duplicate implicit target name"
|
;; with "Duplicate implicit target name"
|
||||||
(zero? (system* "python" "./setup.py" "check"
|
(invoke "python" "./setup.py" "check"
|
||||||
"--strict" "--metadata")))))))
|
"--strict" "--metadata"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-coverage" ,python-coverage)
|
`(("python-coverage" ,python-coverage)
|
||||||
("python-pytest" ,python-pytest)))
|
("python-pytest" ,python-pytest)))
|
||||||
|
@ -1100,8 +1100,8 @@ python-fixtures package instead.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "python" "-m" "testtools.run"
|
(invoke "python" "-m" "testtools.run"
|
||||||
"fixtures.test_suite")))))))
|
"fixtures.test_suite"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
;; Fixtures uses pbr at runtime to check versions, etc.
|
;; Fixtures uses pbr at runtime to check versions, etc.
|
||||||
`(("python-pbr" ,python-pbr)
|
`(("python-pbr" ,python-pbr)
|
||||||
|
@ -1353,8 +1353,8 @@ the last py.test invocation.")
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "py.test" "--genscript=runtests.py"))
|
(invoke "py.test" "--genscript=runtests.py")
|
||||||
(zero? (system* "py.test")))))))
|
(invoke "py.test"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)
|
`(("python-pytest" ,python-pytest)
|
||||||
("python-requests" ,python-requests)
|
("python-requests" ,python-requests)
|
||||||
|
@ -1523,7 +1523,7 @@ failures.")
|
||||||
;; It's easier to run tests after install.
|
;; It's easier to run tests after install.
|
||||||
;; Make installed package available for running the tests
|
;; Make installed package available for running the tests
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
(zero? (system* "py.test" "-vv")))))))
|
(invoke "py.test" "-vv"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-coverage" ,python-coverage)
|
`(("python-coverage" ,python-coverage)
|
||||||
("python-pytest" ,python-pytest)
|
("python-pytest" ,python-pytest)
|
||||||
|
@ -1560,7 +1560,7 @@ failures.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "./testrun")))))))
|
(invoke "./testrun"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-coverage" ,python2-coverage)))
|
`(("python2-coverage" ,python2-coverage)))
|
||||||
(home-page "https://liw.fi/coverage-test-runner/")
|
(home-page "https://liw.fi/coverage-test-runner/")
|
||||||
|
@ -1606,9 +1606,9 @@ statements in the module it tests.")
|
||||||
(string-append (getenv "PYTHONPATH") ":" work))
|
(string-append (getenv "PYTHONPATH") ":" work))
|
||||||
(copy-recursively "." work)
|
(copy-recursively "." work)
|
||||||
(with-directory-excursion "/tmp"
|
(with-directory-excursion "/tmp"
|
||||||
(zero? (system* "python" "-m" "unittest" "discover"
|
(invoke "python" "-m" "unittest" "discover"
|
||||||
"-s" (string-append work "/pylint/test")
|
"-s" (string-append work "/pylint/test")
|
||||||
"-p" "*test_*.py")))))))))
|
"-p" "*test_*.py"))))))))
|
||||||
(home-page "https://github.com/PyCQA/pylint")
|
(home-page "https://github.com/PyCQA/pylint")
|
||||||
(synopsis "Python source code analyzer which looks for coding standard
|
(synopsis "Python source code analyzer which looks for coding standard
|
||||||
errors")
|
errors")
|
||||||
|
@ -1841,7 +1841,8 @@ tests written in a natural language style, backed up by Python code.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("'wheel'") "") ; We don't use it.
|
(("'wheel'") "") ; We don't use it.
|
||||||
(("'ordereddict==1.1'") ""))))))) ; Python >= 2.7 has it built-in.
|
(("'ordereddict==1.1'") "")) ; Python >= 2.7 has it built-in.
|
||||||
|
#t)))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("behave" ,behave)
|
`(("behave" ,behave)
|
||||||
("python-requests" ,python-requests)))
|
("python-requests" ,python-requests)))
|
||||||
|
|
Loading…
Reference in New Issue