-
Notifications
You must be signed in to change notification settings - Fork 45
/
test.bash
executable file
·68 lines (47 loc) · 1.02 KB
/
test.bash
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
eval "$(vg eval --shell bash)"
set -uex -o pipefail
rm -rf coverages
go test -covermode=count -coverpkg=./... -c github.com/GetStream/vg -o testbins/testvg
go build -i -o testbins/vg github.com/GetStream/vg/internal/testwrapper/vg
vg deactivate || true
go get github.com/pkg/errors
export PATH=$PWD/testbins:$PATH
export COVERDIR=$PWD/coverages
echo PATH="$PATH"
vg setup
bash -c 'which vg'
! bash -c 'vg activate'
! bash -c 'vg deactivate'
! bash -c 'vg cdpackages'
! bash -c 'vg init'
vg setup
vg setup
vg version
vg status
set +xu
eval "$(vg eval --shell bash)"
set -xu
vg activate testWS
vg status
vg deactivate testWS
vg destroy testWS
vg activate testWS
vg ensure -- -v
vg uninstall github.com/pkg/errors
vg localInstall github.com/pkg/errors
vg uninstall github.com/pkg/errors
vg destroy
vg activate testWS
vg globalExec dep ensure -v
vg moveVendor
vg destroy
vg activate testWS --full-isolation
vg destroy
vg activate testWS --global-fallback
vg destroy
cd testbins
vg init
vg link
vg unlink
vg destroy