10 lines
246 B
Bash
Executable File
10 lines
246 B
Bash
Executable File
#!/bin/bash
|
|
|
|
[ -f testing.sh ] && . testing.sh
|
|
|
|
#testing "name" "command" "result" "infile" "stdin"
|
|
|
|
testing "" "tee" "one" "" "one"
|
|
testing "" "tee -" "two\n" "" "two\n"
|
|
testing "" "tee one > two && cmp one two && echo that" "that\n" "" "three"
|