blob: 7b93d6dce98bc7edcb40d216de1776088f7fc7d5 [file] [log] [blame]
package gotoolchain
import (
"os"
"os/exec"
"path"
"testing"
)
func TestGoToolRuns(t *testing.T) {
cmd := exec.Command(Go, "version")
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("Failed to run `go version`: %q, %v", string(out), err)
}
}
func TestGorootContainsRoot(t *testing.T) {
rootfile := path.Join(Root, "ROOT")
if _, err := os.Stat(rootfile); err != nil {
t.Fatalf("ROOT not found in %s", Root)
}
}