FIXME need to test Open with seek run - run a shell command
(t *testing.T, args ...string)
| 29 | |
| 30 | // run - run a shell command |
| 31 | func run(t *testing.T, args ...string) { |
| 32 | cmd := exec.Command(args[0], args[1:]...) |
| 33 | fs.Debugf(nil, "run args = %v", args) |
| 34 | out, err := cmd.CombinedOutput() |
| 35 | if err != nil { |
| 36 | t.Fatalf(` |
| 37 | ---------------------------- |
| 38 | Failed to run %v: %v |
| 39 | Command output was: |
| 40 | %s |
| 41 | ---------------------------- |
| 42 | `, args, err, out) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // check the dst and src are identical |
| 47 | func checkTree(ctx context.Context, name string, t *testing.T, dstArchive, src string, expectedCount int) { |
no test coverage detected