(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestShellTool_HandlerEcho(t *testing.T) { |
| 36 | t.Parallel() |
| 37 | tool := New(nil, &config.RuntimeConfig{Config: config.Config{WorkingDir: t.TempDir()}}) |
| 38 | |
| 39 | result, err := tool.handler.RunShell(t.Context(), RunShellArgs{ |
| 40 | Cmd: "echo 'hello world'", |
| 41 | Cwd: "", |
| 42 | }) |
| 43 | require.NoError(t, err) |
| 44 | assert.Contains(t, result.Output, "hello world") |
| 45 | } |
| 46 | |
| 47 | func TestShellTool_HandlerWithCwd(t *testing.T) { |
| 48 | t.Parallel() |