File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ jobs:
30
30
- name : Checkout code
31
31
uses : actions/checkout@v4
32
32
- name : Test
33
- run : sudo go test -v -cover -coverprofile=coverage.out ./...
33
+ run : sudo go test -v -cover -coverprofile=coverage.out -coverpkg=./... ./...
34
34
- name : Test with Address Sanitizer
35
35
env :
36
36
GO_PAM_TEST_WITH_ASAN : true
37
37
CGO_CFLAGS : " -O0 -g3 -fno-omit-frame-pointer"
38
38
run : |
39
39
# Do not run sudo-requiring go tests because as PAM has some leaks in 22.04
40
- go test -v -asan -cover -coverprofile=coverage-asan-tx.out -gcflags=all="-N -l"
40
+ go test -v -asan -cover -coverprofile=coverage-asan-tx.out -coverpkg=./... - gcflags=all="-N -l"
41
41
42
42
# Run the rest of tests normally
43
- sudo go test -v -cover -coverprofile=coverage-asan-module.out -asan -gcflags=all="-N -l" -run Module
44
- sudo go test -C cmd -coverprofile=coverage-asan.out -v -asan -gcflags=all="-N -l" ./...
43
+ sudo go test -v -cover -coverprofile=coverage-asan-module.out -coverpkg=./... - asan -gcflags=all="-N -l" -run Module
44
+ sudo go test -C cmd -coverprofile=coverage-asan.out -v -coverpkg=./... - asan -gcflags=all="-N -l" ./...
45
45
- name : Generate example module
46
46
run : |
47
47
rm -f example-module/pam_go.so
You can’t perform that action at this time.
0 commit comments