mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add docker.
* gnu/packages/docker.scm (docker): New variable. * gnu/packages/patches/docker-engine-test-noinstall.patch: New file. * gnu/packages/patches/docker-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add them.
This commit is contained in:
parent
fc51c28ae8
commit
f87ea24a82
4 changed files with 231 additions and 0 deletions
23
gnu/packages/patches/docker-engine-test-noinstall.patch
Normal file
23
gnu/packages/patches/docker-engine-test-noinstall.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
Last-Update: 2018-06-18
|
||||
Forwarded: not-needed
|
||||
Author: Dmitry Smirnov <onlyjob@debian.org>
|
||||
Description: prevents test-time installation that causes FTBFS.
|
||||
~~~~
|
||||
go test net: open /usr/lib/go-1.10/pkg/linux_amd64/net.a: permission denied
|
||||
~~~~
|
||||
|
||||
--- a/hack/test/unit
|
||||
+++ b/hack/test/unit
|
||||
@@ -18,12 +18,8 @@
|
||||
|
||||
exclude_paths="/vendor/|/integration"
|
||||
pkg_list=$(go list $TESTDIRS | grep -vE "($exclude_paths)")
|
||||
|
||||
-# install test dependencies once before running tests for each package. This
|
||||
-# significantly reduces the runtime.
|
||||
-go test -i "${BUILDFLAGS[@]}" $pkg_list
|
||||
-
|
||||
for pkg in $pkg_list; do
|
||||
go test "${BUILDFLAGS[@]}" \
|
||||
-cover \
|
||||
-coverprofile=profile.out \
|
Loading…
Add table
Add a link
Reference in a new issue