strace/tests/tee.test
Dmitry V. Levin 6c93254614 tests: add tee.test
* tests/tee.c: New file.
* tests/tee.test: New test.
* tests/.gitignore: Add tee.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add tee.test.
2016-02-14 00:36:38 +00:00

12 lines
173 B
Bash
Executable File

#!/bin/sh
# Check tee syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -etee $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"