Archived
1
0
Fork 0

gnu: oil: Respect #:tests?.

* gnu/packages/shells.scm (oil)[arguments]: Respect #:tests? in the custom
check phase.
This commit is contained in:
Arun Isaac 2021-07-25 20:03:10 +05:30
parent d1318cb4de
commit ed9d146734
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -8,7 +8,7 @@
;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017, 2018 Nikita <nikita@n0.is> ;;; Copyright © 2017, 2018 Nikita <nikita@n0.is>
;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name> ;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2017, 2021 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019 Meiyo Peng <meiyo.peng@gmail.com> ;;; Copyright © 2019 Meiyo Peng <meiyo.peng@gmail.com>
;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com> ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
@ -855,11 +855,11 @@ Shell (pdksh).")
;; The tests are not distributed in the tarballs but upstream ;; The tests are not distributed in the tarballs but upstream
;; recommends running this smoke test. ;; recommends running this smoke test.
;; https://github.com/oilshell/oil/blob/release/0.8.0/INSTALL.txt#L38-L48 ;; https://github.com/oilshell/oil/blob/release/0.8.0/INSTALL.txt#L38-L48
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(let* ((oil "_bin/oil.ovm")) (when tests?
(invoke/quiet oil "osh" "-c" "echo hi") (let* ((oil "_bin/oil.ovm"))
(invoke/quiet oil "osh" "-n" "configure") (invoke/quiet oil "osh" "-c" "echo hi")
#t)))))) (invoke/quiet oil "osh" "-n" "configure"))))))))
(inputs (inputs
`(("readline" ,readline))) `(("readline" ,readline)))
(home-page "https://www.oilshell.org") (home-page "https://www.oilshell.org")