Demo JATS test suite

test 353B

1234567891011121314151617
  1. #!/bin/bash
  2. jat__pstarts "collect output"
  3. jat__cmd -h "run ls" \
  4. eval "ls >ls.out 2>ls.err"
  5. jat__pend
  6. jat__pstarts "verify output"
  7. jat__cmd -h "stdout is present" \
  8. test -s "ls.out"
  9. jat__cmd -h "stderr is empty" -S 1 \
  10. test -s "ls.err"
  11. jat__pend
  12. jat__pstartc "clean up"
  13. jat__cmd rm "ls.out" "ls.err"
  14. jat__pend