unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23834: 9/582 tests failed on machine running debian testing
@ 2016-06-23 13:31 Alex Vong
  2016-06-24 23:15 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Vong @ 2016-06-23 13:31 UTC (permalink / raw)
  To: 23834

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

Hi guix,

The tests 'tests/substitute.scm' and 'tests/containers.scm' failed, the
relevant logs are attched below.

The machine has the following 'uname -a' output:
  Linux debian 4.6.0-1-amd64 #1 SMP Debian 4.6.1-1 (2016-06-06) x86_64 GNU/Linux

Thanks,
Alex


[-- Attachment #2: test-suite.log --]
[-- Type: application/octet-stream, Size: 44400 bytes --]

[-- Attachment #3: substitute.log --]
[-- Type: application/octet-stream, Size: 11100 bytes --]

[-- Attachment #4: containers.log --]
[-- Type: application/octet-stream, Size: 5443 bytes --]

test-name: call-with-container, exit with 0 when there is no error
location: /home/alexvong1995/scm/guix/tests/containers.scm:38
source:
+ (test-assert
+   "call-with-container, exit with 0 when there is no error"
+   (zero? (call-with-container
+            '()
+            (const #t)
+            #:namespaces
+            '(user))))
result: SKIP

test-name: call-with-container, user namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:42
source:
+ (test-assert
+   "call-with-container, user namespace"
+   (zero? (call-with-container
+            '()
+            (lambda ()
+              (assert-exit
+                (and (zero? (getuid)) (zero? (getgid)))))
+            #:namespaces
+            '(user))))
result: SKIP

test-name: call-with-container, uts namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:50
source:
+ (test-assert
+   "call-with-container, uts namespace"
+   (zero? (call-with-container
+            '()
+            (lambda ()
+              (sethostname "test-container")
+              (primitive-exit 0))
+            #:namespaces
+            '(user uts))))
result: SKIP

test-name: call-with-container, pid namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:60
source:
+ (test-assert
+   "call-with-container, pid namespace"
+   (zero? (call-with-container
+            '()
+            (lambda ()
+              (match (primitive-fork)
+                     (0 (assert-exit (= 2 (getpid))))
+                     (pid (primitive-exit
+                            (match (waitpid pid)
+                                   ((_ . status)
+                                    (status:exit-val status)))))))
+            #:namespaces
+            '(user pid))))
result: SKIP

test-name: call-with-container, mnt namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:75
source:
+ (test-assert
+   "call-with-container, mnt namespace"
+   (zero? (call-with-container
+            '(("none" device "/testing" "tmpfs" () #f #f))
+            (lambda ()
+              (assert-exit (file-exists? "/testing")))
+            #:namespaces
+            '(user mnt))))
result: SKIP

test-name: call-with-container, mnt namespace, wrong bind mount
location: /home/alexvong1995/scm/guix/tests/containers.scm:82
source:
+ (test-equal
+   "call-with-container, mnt namespace, wrong bind mount"
+   `(system-error ,ENOENT)
+   (catch 'system-error
+          (lambda ()
+            (call-with-container
+              '(("/does-not-exist"
+                 device
+                 "/foo"
+                 "none"
+                 (bind-mount)
+                 #f
+                 #f))
+              (const #t)
+              #:namespaces
+              '(user mnt)))
+          (lambda args
+            (list 'system-error (system-error-errno args)))))
result: SKIP

test-name: call-with-container, all namespaces
location: /home/alexvong1995/scm/guix/tests/containers.scm:94
source:
+ (test-assert
+   "call-with-container, all namespaces"
+   (zero? (call-with-container
+            '()
+            (lambda () (primitive-exit 0)))))
result: SKIP

test-name: container-excursion
location: /home/alexvong1995/scm/guix/tests/containers.scm:100
source:
+ (test-assert
+   "container-excursion"
+   (call-with-temporary-directory
+     (lambda (root)
+       (match (list (pipe) (pipe))
+              (((start-in . start-out) (end-in . end-out))
+               (define (container)
+                 (close end-out)
+                 (close start-in)
+                 (write 'ready start-out)
+                 (close start-out)
+                 (read end-in)
+                 (close end-in))
+               (define (namespaces pid)
+                 (let ((pid (number->string pid)))
+                   (map (lambda (ns)
+                          (readlink (string-append "/proc/" pid "/ns/" ns)))
+                        '("user" "ipc" "uts" "net" "pid" "mnt"))))
+               (let* ((pid (run-container root '() %namespaces 1 container))
+                      (container-namespaces (namespaces pid))
+                      (result
+                        (begin
+                          (close start-out)
+                          (read start-in)
+                          (close start-in)
+                          (container-excursion
+                            pid
+                            (lambda ()
+                              (match (primitive-fork)
+                                     (0
+                                      (assert-exit
+                                        (equal?
+                                          container-namespaces
+                                          (namespaces (getpid)))))
+                                     (fork-pid
+                                       (match (waitpid fork-pid)
+                                              ((_ . status)
+                                               (primitive-exit
+                                                 (status:exit-val
+                                                   status)))))))))))
+                 (close end-in)
+                 (write 'done end-out)
+                 (close end-out)
+                 (waitpid pid)
+                 (zero? result)))))))
actual-value: #f
actual-error:
+ (system-error
+   "clone"
+   "~d: ~A"
+   (2080505873 "Operation not permitted")
+   (1))
result: FAIL


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-24 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-23 13:31 bug#23834: 9/582 tests failed on machine running debian testing Alex Vong
2016-06-24 23:15 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).