aboutsummaryrefslogtreecommitdiff
path: root/tests/tee.test
blob: fd3b9447198de6de366df8bf51cd38b0c0e564e5 (plain)
1
2
3
4
5
6
7
8
9
#!/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"