Skip to content

Commit

Permalink
pam: Move pam_test into internal packages
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Jan 15, 2024
1 parent 39f81d7 commit b1f25c4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
CGO_CFLAGS: "-O0 -g3 -fno-omit-frame-pointer"
run: |
# Use `-dwarflocationlists` to give ASAN a better time to unwind the stack trace
go test -asan -gcflags="-dwarflocationlists=true" ./pam/pam_test ./pam/internal/gdm/
go test -C ./pam/internal -asan -gcflags="-dwarflocationlists=true" ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pam/internal/gdm/conversation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/msteinert/pam/v2"
"github.com/stretchr/testify/require"
"github.com/ubuntu/authd/pam/pam_test"
"github.com/ubuntu/authd/pam/internal/pam_test"
)

func TestSendToGdm(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pam/internal/gdm/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/msteinert/pam/v2"
"github.com/stretchr/testify/require"
"github.com/ubuntu/authd/pam/pam_test"
"github.com/ubuntu/authd/pam/internal/pam_test"
)

func TestMain(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pam/main-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/msteinert/pam/v2"
"github.com/sirupsen/logrus"
"github.com/ubuntu/authd/internal/log"
"github.com/ubuntu/authd/pam/pam_test"
"github.com/ubuntu/authd/pam/internal/pam_test"
)

// Simulating pam on the CLI for manual testing.
Expand Down

0 comments on commit b1f25c4

Please sign in to comment.