<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests/containers.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://www.git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://www.git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/'/>
<updated>2019-04-02T16:15:37Z</updated>
<entry>
<title>linux-container: Make the guest UID and GID a parameter.</title>
<updated>2019-04-02T16:15:37Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-04-02T08:34:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=af76c020bf19de5fe2e92f31d8b85cbd55c481de'/>
<id>urn:sha1:af76c020bf19de5fe2e92f31d8b85cbd55c481de</id>
<content type='text'>
* gnu/build/linux-container.scm (initialize-user-namespace): Add
 #:guest-uid and #:guest-gid parameters and honor them.
(run-container): Likewise.
(call-with-container): Likewise.
* tests/containers.scm ("call-with-container, user namespace, guest UID/GID"):
New test.
</content>
</entry>
<entry>
<title>tests: Fix race condition in 'container-excursion*' test.</title>
<updated>2017-05-31T15:08:45Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-05-31T08:02:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=3e894917414239cab1737d89feb263e0825ae7c5'/>
<id>urn:sha1:3e894917414239cab1737d89feb263e0825ae7c5</id>
<content type='text'>
* tests/containers.scm ("container-excursion*"): Move (namespace pid)
call before (kill pid SIGKILL).
</content>
</entry>
<entry>
<title>linux-container: Add 'container-excursion*'.</title>
<updated>2017-02-06T23:08:10Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-02-06T22:45:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=c90db25f4cf1f98f3f4f3af38d175a14ffb8c32a'/>
<id>urn:sha1:c90db25f4cf1f98f3f4f3af38d175a14ffb8c32a</id>
<content type='text'>
* gnu/build/linux-container.scm (container-excursion*): New procedure.
* tests/containers.scm ("container-excursion*")
("container-excursion*, same namespaces"): New tests.
</content>
</entry>
<entry>
<title>tests: Don't check file-systems in container tests.</title>
<updated>2016-11-13T12:04:00Z</updated>
<author>
<name>Andy Patterson</name>
<email>ajpatter@uwaterloo.ca</email>
</author>
<published>2016-11-13T03:20:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=a24b56fa8d64d9c6b8348c439cc988dbcebc911f'/>
<id>urn:sha1:a24b56fa8d64d9c6b8348c439cc988dbcebc911f</id>
<content type='text'>
Hello,

The containers test was hanging for me, and this patch fixed the
problem.

--
Andy

From 945ad44acf489b7f3a398d4ab739ec2b48477502 Mon Sep 17 00:00:00 2001
From: Andy Patterson &lt;ajpatter@uwaterloo.ca&gt;
Date: Sat, 12 Nov 2016 22:10:01 -0500
Subject: [PATCH] tests: Don't check file-systems in container tests.

* tests/containers.scm ("call-with-container, mnt namespace"): Don't
check file-system in 'call-with-container' call.
* tests/containers.scm
("call-with-container, mnt namespace, wrong bindmount"): Likewise.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>container: Pass a list of &lt;file-system&gt; objects as things to mount.</title>
<updated>2016-11-10T17:01:44Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-11-10T16:45:54Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=5970e8e248f6327c41c83b86bb2c89be7c3b1b4e'/>
<id>urn:sha1:5970e8e248f6327c41c83b86bb2c89be7c3b1b4e</id>
<content type='text'>
* gnu/build/linux-container.scm (mount-file-systems): 'mounts' is now a
list of &lt;file-system&gt; objects instead of a list of lists ("specs").
Add call to 'file-system-&gt;spec' as the argument to 'mount-file-system'.
(run-container, call-with-container): Adjust docstring accordingly.
* gnu/system/file-systems.scm (spec-&gt;file-system): New procedure.
* gnu/system/linux-container.scm (container-script)[script]: Call
'spec-&gt;file-system' inside gexp.
* guix/scripts/environment.scm (launch-environment/container): Remove
call to 'file-system-&gt;spec'.
* tests/containers.scm ("call-with-container, mnt namespace")
("call-with-container, mnt namespace, wrong bind mount"): Pass a list of
&lt;file-system&gt; objects.
</content>
</entry>
<entry>
<title>container: Allow 'container-excursion' to the same namespaces.</title>
<updated>2016-10-19T13:54:10Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-10-18T21:22:03Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=7fee5b53973fb4fe049aa0bc5db58093727bdf30'/>
<id>urn:sha1:7fee5b53973fb4fe049aa0bc5db58093727bdf30</id>
<content type='text'>
Before that, 'container-excursion' would call 'setns' even when the
target namespace is the one the caller is already in, which would fail.

* gnu/build/linux-container.scm (container-excursion): Introduce
'source' and 'target'.  Compare the result of 'readlink' on these
instead of comparing file descriptors to decide whether to call
'setns'.
* tests/containers.scm ("container-excursion, same namespace"): New test.
</content>
</entry>
<entry>
<title>tests: Skip all the container tests when needed.</title>
<updated>2016-06-24T23:13:23Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-06-24T22:42:19Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=25a3bfbe77cb45aa26f9af8c72e7f978a177187e'/>
<id>urn:sha1:25a3bfbe77cb45aa26f9af8c72e7f978a177187e</id>
<content type='text'>
Reported by myglc2 &lt;myglc2@gmail.com&gt;
at &lt;http://bugs.gnu.org/23836&gt;.

* tests/containers.scm (skip-if-unsupported): New procedure.
Call it before each test.
</content>
</entry>
<entry>
<title>container: Gracefully report mount errors in the child process.</title>
<updated>2016-05-30T22:11:04Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-05-30T20:44:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=c06f6db7a424fd47e3cd2625dbfda2367316f3bd'/>
<id>urn:sha1:c06f6db7a424fd47e3cd2625dbfda2367316f3bd</id>
<content type='text'>
Fixes &lt;http://bugs.gnu.org/23306&gt;.

* gnu/build/linux-container.scm (run-container): Use 'socketpair'
instead of 'pipe'.  Rename 'in' to 'child' and 'out' to 'parent'.  Send
a 'ready message or an exception argument list from the child to the
parent; adjust the parent accordingly.
* tests/containers.scm ("call-with-container, mnt namespace, wrong bind
mount"): New test.
* tests/guix-environment-container.sh: Add test with
--expose=/does-not-exist.
</content>
</entry>
<entry>
<title>build: Add a Guile custom test driver using SRFI-64.</title>
<updated>2016-04-03T12:19:09Z</updated>
<author>
<name>Mathieu Lirzin</name>
<email>mthl@gnu.org</email>
</author>
<published>2015-10-26T22:47:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=a9edb211e733b8b34e67ec3b4450567e9376986f'/>
<id>urn:sha1:a9edb211e733b8b34e67ec3b4450567e9376986f</id>
<content type='text'>
Before that '.log' files for scheme tests were fragmented and not
included in test-suite.log.  This unifies the semantics of SRFI-64 API
with Automake test suite.

* build-aux/test-driver.scm: New file.
* Makefile.am (SCM_LOG_DRIVER, AM_SCM_LOG_DRIVER_FLAGS): New variables.
(SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): Delete variables.
(AM_TESTS_ENVIRONMENT): Set GUILE_AUTO_COMPILE to 0.
* test-env.in: Silence guix-daemon.
* doc/guix.texi (Running the Test Suite): Describe how to display the
detailed results.  Bug reports require only 'test-suite.log' file.
* tests/base32.scm, tests/build-utils.scm, tests/builders.scm,
tests/challenge.scm, tests/cpan.scm, tests/cpio.scm, tests/cran.scm,
tests/cve.scm, tests/derivations.scm, tests/elpa.scm,
tests/file-systems.scm, tests/gem.scm, tests/gexp.scm,
tests/gnu-maintenance.scm, tests/grafts.scm, tests/graph.scm,
tests/gremlin.scm, tests/hackage.scm, tests/hash.scm,
tests/import-utils.scm, tests/lint.scm, tests/monads.scm, tests/nar.scm,
tests/packages.scm, tests/pk-crypto.scm, tests/pki.scm,
tests/profiles.scm, tests/publish.scm, tests/pypi.scm,
tests/records.scm, tests/scripts-build.scm, tests/scripts.scm,
tests/services.scm, tests/sets.scm, tests/size.scm, tests/snix.scm,
tests/store.scm, tests/substitute.scm, tests/syscalls.scm,
tests/system.scm, tests/ui.scm, tests/union.scm, tests/upstream.scm,
tests/utils.scm: Don't exit at the end of test groups.
* tests/containers.scm: Likewise.  Use 'test-skip' instead of exiting
with error code 77.
</content>
</entry>
<entry>
<title>build: container: Add feature test predicates.</title>
<updated>2015-11-03T16:41:04Z</updated>
<author>
<name>David Thompson</name>
<email>dthompson2@worcester.edu</email>
</author>
<published>2015-11-03T13:32:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=b7d48312bbfc7bdbb3895eb10edc352eeb555b98'/>
<id>urn:sha1:b7d48312bbfc7bdbb3895eb10edc352eeb555b98</id>
<content type='text'>
* gnu/build/linux-container.scm (user-namespace-supported?,
  unprivileged-user-namespace-supported?, setgroups-supported?): New
  procedures.
* tests/container.scm: Use predicates.
* tests/syscalls.scm: Likewise.
</content>
</entry>
</feed>
