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