diff --git a/goose_test.go b/goose_test.go index 4fe28b2..19d99d8 100644 --- a/goose_test.go +++ b/goose_test.go @@ -24,6 +24,23 @@ func TestDefaultBinary(t *testing.T) { } } +func TestLiteBinary(t *testing.T) { + commands := []string{ + "go build -i -o goose ./cmd/goose", + "./goose-lite -dir=examples/sql-migrations create user_table sql", + "./goose-lite -dir=examples/sql-migrations create user_indices sql", + "./goose-lite -dir=examples/sql-migrations fix", + } + + for _, cmd := range commands { + args := strings.Split(cmd, " ") + out, err := exec.Command(args[0], args[1:]...).CombinedOutput() + if err != nil { + t.Fatalf("%s:\n%v\n\n%s", err, cmd, out) + } + } +} + func TestCustomBinary(t *testing.T) { commands := []string{ "go build -i -o custom-goose ./examples/go-migrations",