toybox/tests/tee.test
<<
>>
Prefs
   1#!/bin/bash
   2
   3[ -f testing.sh ] && . testing.sh
   4
   5#testing "name" "command" "result" "infile" "stdin"
   6
   7testing "" "tee" "one" "" "one"
   8testing "" "tee -" "two\n" "" "two\n"
   9testing "" "tee one > two && cmp one two && echo that" "that\n" "" "three"
  10