mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 02:18:56 +00:00
add version command test
This commit is contained in:
17
ghorg_test.go
Normal file
17
ghorg_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
err := exec.Command("go", "run", "main.go", "version").Run()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
Reference in New Issue
Block a user