1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 // Skip this slow test unless invoked as "go test -tags docker".
6 // Depending on host/network speed, Go's default 10m test timeout
7 // might be too short; recommend "go test -timeout 20m -tags docker".
20 func Test(t *testing.T) {
24 var _ = check.Suite(&Suite{})
28 func (*Suite) TestInstallDeps(c *check.C) {
33 sourcepath="$(realpath ../..)"
34 (cd ${sourcepath} && go build -o ${tmp} ./cmd/arvados-server)
35 docker run -i --rm --workdir /arvados \
36 -v ${tmp}/arvados-server:/arvados-server:ro \
37 -v ${sourcepath}:/arvados:ro \
38 -v /arvados/apps/workbench/.bundle \
39 -v /arvados/services/api/.bundle \
40 -v /arvados/services/api/tmp \
44 bash -c "/arvados-server install -type test && /arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -shutdown -timeout 9m"
46 c.Check(runBash(script, os.Stdout, os.Stderr), check.IsNil)