Skip to content

Commit

Permalink
pam/integration-tests: Run tests using the exec module with GDM too
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Apr 7, 2024
1 parent 43104c2 commit 0d87e46
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pam/integration-tests/gdm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,19 @@ func TestGdmModuleWithCWrapper(t *testing.T) {
t.Parallel()
t.Cleanup(pam_test.MaybeDoLeakCheck)

wrapperLibPath := buildPAMWrapperModule(t)
libPath := buildPAMModule(t)
testGdmModule(t, wrapperLibPath, []string{libPath})
execLib := buildExecModule(t)
cliPath := buildPAMClient(t)
moduleArgs := []string{"--exec-debug"}
if !testutils.IsVerbose() {
logFile := prepareFileLogging(t, "exec-module.log")
saveArtifactsForDebug(t, []string{logFile})
moduleArgs = append(moduleArgs, "--exec-log", logFile)
}
if env := testutils.CoverDirEnv(); env != "" {
moduleArgs = append(moduleArgs, "--exec-env", testutils.CoverDirEnv())
}
moduleArgs = append(moduleArgs, "--", cliPath)
testGdmModule(t, execLib, moduleArgs)
}

func buildPAMModule(t *testing.T) string {
Expand Down

0 comments on commit 0d87e46

Please sign in to comment.