• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/json-c/tests/test1.test

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

This page was automatically generated by LXR 0.3.1.  •  OpenWrt