Home | History | Annotate | Download | only in tests
      1 #!/bin/bash
      2 
      3 [ -f testing.sh ] && . testing.sh
      4 
      5 #testing "name" "command" "result" "infile" "stdin"
      6 
      7 cat >file1 <<EOF
      8 line1
      9 line2
     10 EOF
     11 
     12 testing "non-tty" "more file1 | cat -" "line1\nline2\n" "" ""
     13 
     14 rm file1
     15