(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestExecPipeRedirect(t *testing.T) { |
| 49 | tests := []test.MurexTest{ |
| 50 | { |
| 51 | Block: `out <null> exec_test.go`, |
| 52 | Stdout: "", |
| 53 | }, |
| 54 | { |
| 55 | Block: `ls <null> exec_test.go`, |
| 56 | Stdout: "", |
| 57 | }, |
| 58 | { |
| 59 | Block: `exec <null> ls exec_test.go`, |
| 60 | Stdout: "", |
| 61 | }, |
| 62 | ///// |
| 63 | { |
| 64 | Block: `out <!null> exec_test.go`, |
| 65 | Stdout: "exec_test.go\n", |
| 66 | }, |
| 67 | { |
| 68 | Block: `ls <!null> exec_test.go`, |
| 69 | Stdout: "exec_test.go\n", |
| 70 | }, |
| 71 | { |
| 72 | Block: `exec <!null> ls exec_test.go`, |
| 73 | Stdout: "exec_test.go\n", |
| 74 | }, |
| 75 | ///// |
| 76 | { |
| 77 | Block: `out <!out> exec_test.go`, |
| 78 | Stdout: "exec_test.go\n", |
| 79 | }, |
| 80 | { |
| 81 | Block: `ls <!out> exec_test.go`, |
| 82 | Stdout: "exec_test.go\n", |
| 83 | }, |
| 84 | { |
| 85 | Block: `exec <!out> ls exec_test.go`, |
| 86 | Stdout: "exec_test.go\n", |
| 87 | }, |
| 88 | ///// |
| 89 | { |
| 90 | Block: `out <err> exec_test.go`, |
| 91 | Stderr: "exec_test.go\n", |
| 92 | }, |
| 93 | { |
| 94 | Block: `ls <err> exec_test.go`, |
| 95 | Stderr: "exec_test.go\n", |
| 96 | }, |
| 97 | { |
| 98 | Block: `exec <err> ls exec_test.go`, |
| 99 | Stderr: "exec_test.go\n", |
| 100 | }, |
| 101 | } |
| 102 | |
| 103 | test.RunMurexTests(tests, t) |
| 104 | } |
nothing calls this directly
no test coverage detected