gnu: oil: Respect #:tests?.
* gnu/packages/shells.scm (oil)[arguments]: Respect #:tests? in the custom check phase.
This commit is contained in:
		
							parent
							
								
									d1318cb4de
								
							
						
					
					
						commit
						ed9d146734
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -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")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue