xref: /aosp_15_r20/external/toybox/tests/tee.test (revision cf5a6c84e2b8763fc1a7db14496fd4742913b199)
1*cf5a6c84SAndroid Build Coastguard Worker#!/bin/bash
2*cf5a6c84SAndroid Build Coastguard Worker
3*cf5a6c84SAndroid Build Coastguard Worker[ -f testing.sh ] && . testing.sh
4*cf5a6c84SAndroid Build Coastguard Worker
5*cf5a6c84SAndroid Build Coastguard Worker#testing "name" "command" "result" "infile" "stdin"
6*cf5a6c84SAndroid Build Coastguard Worker
7*cf5a6c84SAndroid Build Coastguard Workertesting "" "tee" "one" "" "one"
8*cf5a6c84SAndroid Build Coastguard Workertesting "" "tee -" "two\n" "" "two\n"
9*cf5a6c84SAndroid Build Coastguard Workertesting "" "tee one > two && cmp one two && echo that" "that\n" "" "three"
10