| 1 |
cp input.sh input.sh.orig |
| 2 |
|
| 3 |
stdin input.sh |
| 4 |
exec shfmt |
| 5 |
cmp stdout input.sh.golden |
| 6 |
! stderr . |
| 7 |
|
| 8 |
stdin input.sh |
| 9 |
exec shfmt - |
| 10 |
cmp stdout input.sh.golden |
| 11 |
! stderr . |
| 12 |
|
| 13 |
exec shfmt input.sh |
| 14 |
cmp stdout input.sh.golden |
| 15 |
! stderr . |
| 16 |
|
| 17 |
! exec shfmt -l input.sh |
| 18 |
stdout 'input\.sh' |
| 19 |
! stdout foo |
| 20 |
! stderr . |
| 21 |
cmp input.sh input.sh.orig |
| 22 |
|
| 23 |
! exec shfmt -l input.sh input.sh |
| 24 |
stdout -count=2 'input.sh' |
| 25 |
|
| 26 |
exec shfmt -l -w input.sh |
| 27 |
stdout 'input\.sh' |
| 28 |
! stdout foo |
| 29 |
! stderr . |
| 30 |
cmp input.sh input.sh.golden |
| 31 |
|
| 32 |
cp input.sh.orig input.sh |
| 33 |
exec shfmt --list --write input.sh |
| 34 |
stdout 'input\.sh' |
| 35 |
! stdout foo |
| 36 |
! stderr . |
| 37 |
cmp input.sh input.sh.golden |
| 38 |
|
| 39 |
-- input.sh -- |
| 40 |
foo |
| 41 |
-- input.sh.golden -- |
| 42 |
foo |