File: integration

package info (click to toggle)
containerd 2.1.4~ds2-7
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 21,928 kB
  • sloc: sh: 1,883; makefile: 591
file content (26 lines) | stat: -rwxr-xr-x 750 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -ex

# This executes the equivalent of `make integration` from the main Makefile,
# but with all dependencies, golang libraries, and executables built from Debian sources

# The containerd package will start containerd automatically, and will confuse the test
# To remedy, make sure to stop that service
systemctl stop containerd
systemctl mask containerd
systemctl status containerd || true

# make test executables accessible
PATH=$PATH:/usr/lib/containerd
export PATH

# build the test binary
export GO111MODULE=off
export GOPATH=/usr/share/gocode
cd /usr/share/gocode/src/github.com/containerd/containerd/v2/integration/client/
go test -o $OLDPWD/client.test -c

# now execute it
cd $OLDPWD
exec ./client.test -test.v -test.root