Home | History | Annotate | Line # | Download | only in unit-tests
      1 begin explain
      2 # .echoOff
      3 # .echoTmpl
      4 echo "false regular"
      5 # .runChkTmpl
      6 { false regular
      7 } || exit $?
      8 # .echoOn
      9 # .runChkTmpl
     10 { : silent
     11 } || exit $?
     12 # .echoOn
     13 false ignore-errors
     14 echo run despite the -n option
     15 run despite the -n option
     16 end explain
     17 
     18 begin combined
     19 
     20 silent=no always=no ignerr=no
     21 # .echoOff
     22 # .echoTmpl
     23 echo "echo running"
     24 # .runChkTmpl
     25 { echo running
     26 } || exit $?
     27 # .echoOn
     28 
     29 silent=no always=no ignerr=yes
     30 echo running; false
     31 
     32 silent=no always=yes ignerr=no
     33 echo running
     34 running
     35 
     36 silent=no always=yes ignerr=yes
     37 echo running; false
     38 running
     39 *** Error code 1 (ignored)
     40 
     41 silent=yes always=no ignerr=no
     42 # .runChkTmpl
     43 { echo running
     44 } || exit $?
     45 # .echoOn
     46 
     47 silent=yes always=no ignerr=yes
     48 echo running; false
     49 # .echoOn
     50 
     51 silent=yes always=yes ignerr=no
     52 echo running
     53 running
     54 
     55 silent=yes always=yes ignerr=yes
     56 echo running; false
     57 running
     58 *** Error code 1 (ignored)
     59 
     60 end combined
     61 exit status 0
     62