Skip to content

Commit

Permalink
Adding customlocaltest on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Mar 17, 2022
1 parent e89e420 commit 654167a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions integration/integration_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package integration

import (
"strings"
"testing"

"github.com/bisohns/saido/driver"
Expand All @@ -25,3 +26,18 @@ func TestProcessonLocal(t *testing.T) {
}
}
}

func TestCustomonLocal(t *testing.T) {
d := NewLocalForTest()
dfConcrete, _ := d.(*driver.Local)
dfConcrete.Vars = []string{"EXAMPLES=true"}
d = dfConcrete
i, _ := inspector.Init(`custom`, &d, `echo %EXAMPLES%`)
i.Execute()
iConcrete, ok := i.(*inspector.Custom)
if ok {
if strings.TrimSpace(iConcrete.Values.Output) != "true" {
t.Errorf("Expected 'true', found %s", iConcrete.Values.Output)
}
}
}

0 comments on commit 654167a

Please sign in to comment.