| "v.io/core/veyron/lib/modules" |
| "v.io/core/veyron/lib/testutil/integration" |
| _ "v.io/core/veyron/profiles" |
| func TestHelperProcess(t *testing.T) { |
| func TestBinaryFromPath(t *testing.T) { |
| env := integration.NewTestEnvironment(t) |
| bash := env.BinaryFromPath("/bin/bash") |
| if want, got := "hello world\n", bash.Start("-c", "echo hello world").Output(); want != got { |
| t.Fatalf("unexpected output, want %s, got %s", want, got) |
| // TODO(sjr): revive this once stderr handling is fixed. |
| // if want, got := "hello world\n", bash.Start("-c", "echo hello world 1>&2").ErrorOutput(); want != got { |
| // t.Fatalf("unexpected output, want %s, got %s", want, got) |