You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test2.test 756 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. # Common definitions
  3. if test -z "$srcdir"; then
  4. srcdir="${0%/*}"
  5. test "$srcdir" = "$0" && srcdir=.
  6. test -z "$srcdir" && srcdir=.
  7. fi
  8. . "$srcdir/test-defs.sh"
  9. run_output_test test2
  10. _err=$?
  11. for flag in plain spaced pretty ; do
  12. run_output_test -o test2Formatted_${flag} test2Formatted ${flag}
  13. _err2=$?
  14. if [ $_err -eq 0 ] ; then
  15. _err=$_err2
  16. fi
  17. done
  18. # Spaced and pretty JSON string
  19. run_output_test -o test2Formatted_spaced_pretty \
  20. test2Formatted spaced pretty
  21. _err2=$?
  22. if [ $_err -eq 0 ] ; then
  23. _err=$_err2
  24. fi
  25. # Spaced and pretty JSON string using tabs
  26. run_output_test -o test2Formatted_spaced_pretty_pretty_tab \
  27. test2Formatted spaced pretty pretty_tab
  28. _err2=$?
  29. if [ $_err -eq 0 ] ; then
  30. _err=$_err2
  31. fi
  32. exit $_err