Demo JATS test suite

test 423B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. jattool() {
  3. #
  4. # Run jattool safely
  5. #
  6. (
  7. export PRETTY=plain
  8. command jattool "$@"
  9. )
  10. }
  11. jat__pstartt "jattool"
  12. jat__cmd -h "returns two" \
  13. -S 2 -e jattool.err -o jattool.out \
  14. jattool
  15. jat__cmd -h "prints nothing to stdout" \
  16. -S 1 \
  17. test -s jattool.out
  18. jat__cmd -h "prints something to stderr" \
  19. test -s jattool.err
  20. jat__pend