# file : tests/test/script/runner/testscript # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file $* # status-def $* == 0 # status-eq-0 $* -s 1 != 0 # status-ne-0 $* -s 1 == 1 # status-eq-1 $* != 1 # status-ne-1 $* -o foo >- # out-null $* -e foo 2>- # err-null $* -i 0 foo # out-str $* -e foo 2>foo # err-str $* -i 1 foo # inout-str $* -i 2 foo # inerr-str $* -i 1 -e bar foo 2>bar # inout-err-str $* -i 0 <>EOO # out-doc foo bar EOO $* -e foo -e bar 2>>EOO # err-doc foo bar EOO $* -i 1 <>EOO # inout-doc foo bar EOI foo bar EOO $* -i 2 <>EOE # inerr-doc foo bar EOI foo bar EOE $* -i 1 -e bar -e baz -s 2 <>EOO 2>>EOE == 2 # inout-err-doc-status foo bar EOI foo bar EOO bar baz EOE $* -i 1 -e "" <>EOO 2>"" # empty-str-doc EOI EOO $* -i 1 <>EOO # nl-containing-doc EOI EOO # No-newline tests. # # @@ TMP Need does not compare test. # $* -i 1 <:"foo" >:"foo" # no-newline-str #\ $* -i 1 <:"foo" >!"foo" # no-newline-str-fail1 $* -i 1 <"foo" >:!"foo" # no-newline-str-fail2 #\ $* -i 1 <<:EOI >>:EOO # no-newline-doc foo EOI foo EOO #\ $* -i 1 <<:EOI >>!EOO # no-newline-doc-fail1 foo EOI foo EOO $* -i 1 <>:!EOO # no-newline-doc-fail2 foo EOI foo EOO #\ $* -i 1 <<:EOI >>:EOO 2>:"" # no-newline-empty-str-doc EOI EOO $* -i 1 <<:EOI >>:EOO # no-newline-nl-cont-doc EOI EOO $* -o foo >>>out; # file-redirect $* -e bar 2>>>&out; $* -i 1 <<>EOO foo bar EOO