mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-06 13:49:18 +00:00
15 lines
299 B
Go
15 lines
299 B
Go
package integration_test
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"os/exec"
|
|
"testing"
|
|
)
|
|
|
|
func TestVersion(t *testing.T) {
|
|
cmd := exec.Command("go", "run", "../main.go", "--version")
|
|
out, err := cmd.CombinedOutput()
|
|
assert.NoError(t, err)
|
|
assert.Contains(t, string(out), "autorestic")
|
|
}
|