File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -59,17 +59,10 @@ jobs:
59
59
go-version : ' ^1.22'
60
60
id : go
61
61
62
- - name : Run Unit tests.
63
- run : |
64
- go install github.com/wadey/gocovmerge@latest
65
- sudo systemd-run --service-type=oneshot --uid="$(id --user)" --pipe --wait \
66
- --property=Delegate=yes --setenv=USECURCGROUP=1 \
67
- --setenv=TERM=xterm-256color --same-dir \
68
- make test
69
-
70
62
- name : Run Additional Unit tests.
71
63
run : |
72
64
make build-test-worker
65
+ readelf --dyn-syms -W worker.test
73
66
sudo mkdir /sys/fs/cgroup/tunasync
74
67
sudo ./worker.test -test.v=true -test.coverprofile profile2.cov -test.run TestCgroup
75
68
sudo rmdir /sys/fs/cgroup/tunasync
@@ -195,6 +188,9 @@ jobs:
195
188
lssubsys -am
196
189
cgcreate -a "$CUSER" -t "$CUSER" -g cpu:tunasync
197
190
cgcreate -a "$CUSER" -t "$CUSER" -g memory:tunasync
191
+ ls -la /sys/fs/cgroup/cpuacct
192
+ ls -la /sys/fs/cgroup/cpu,cpuacct
193
+ ls -la /sys/fs/cgroup/memory
198
194
TERM=xterm-256color ./worker.test -test.v=true -test.coverprofile \
199
195
profile3.cov -test.run TestCgroup
200
196
cgexec -g "*:/" bash -c "echo 0 > /sys/fs/cgroup/systemd/tasks; exec sudo -u $CUSER env USECURCGROUP=1 TERM=xterm-256color cgexec -g cpu,memory:tunasync ./worker.test -test.v=true -test.coverprofile profile4.cov -test.run TestCgroup"
You can’t perform that action at this time.
0 commit comments