gnu: acl: Enable tests.
* gnu/packages/acl.scm (acl)[arguments]: Enable tests. Add 'patch-tests' phase.
This commit is contained in:
		
							parent
							
								
									75aea16fb0
								
							
						
					
					
						commit
						2d433b5363
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -44,8 +44,7 @@
 | 
			
		|||
      (patches (search-patches "acl-hurd-path-max.patch"))))
 | 
			
		||||
    (build-system gnu-build-system)
 | 
			
		||||
    (arguments
 | 
			
		||||
     `(#:tests? #f   ; FIXME: Investigate test suite failures
 | 
			
		||||
       #:test-target "tests"
 | 
			
		||||
     `(#:test-target "tests"
 | 
			
		||||
       #:phases
 | 
			
		||||
       (modify-phases %standard-phases
 | 
			
		||||
         (add-after 'build 'patch-exec-bin-sh
 | 
			
		||||
| 
						 | 
				
			
			@ -53,6 +52,16 @@
 | 
			
		|||
             (substitute* "test/run"
 | 
			
		||||
               (("/bin/sh") (which "sh")))
 | 
			
		||||
             #t))
 | 
			
		||||
         (add-before 'check 'patch-tests
 | 
			
		||||
            ;; The coreutils do not have an ACL bit to remove from their
 | 
			
		||||
            ;; output, so the sed expression that removes the bit is disabled.
 | 
			
		||||
            (substitute* "test/sbits-restore.test"
 | 
			
		||||
              (("\\| sed.*'") ""))
 | 
			
		||||
            ;; These tests require the existence of a user named "bin", but
 | 
			
		||||
            ;; this user does not exist within Guix's build environment.
 | 
			
		||||
            (for-each (lambda (file)
 | 
			
		||||
                        (delete-file (string-append "test/" file)))
 | 
			
		||||
                      '("setfacl-X.test" "cp.test" "misc.test")))
 | 
			
		||||
         (replace 'install
 | 
			
		||||
           (lambda _
 | 
			
		||||
             (zero? (system* "make" "install" "install-lib" "install-dev")))))))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue