3433d8cfc3
The tests are also now dartfmt. Bug: https://github.com/dart-lang/sdk/issues/40040 Change-Id: I8dece8097b37b70d47a5374dae2f3fadb0fc4b90 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134338 Commit-Queue: Jonas Termansen <sortie@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
18 lines
693 B
Bash
Executable File
18 lines
693 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# This script expects the following arguments
|
|
# $1: Path to dart executable
|
|
# $2: Path to dart echoing script
|
|
# $3: Argument to dart echoing script (0, 1 or 2)
|
|
# $4: File for output from piping stdout and stderr
|
|
# $5: File prefix for output from redirecting stdout and stderr to a file.
|
|
# $6: Stdio type of stdin
|
|
|
|
# Test piping and stdio file redirection.
|
|
echo "Hello" | $1 $2 $3 pipe pipe pipe 2>&1 | cat - > $4
|
|
$1 $2 $3 $6 file file < $4 > $5.stdout 2> $5.stderr
|
|
$1 $2 $3 $6 file file < $4 >> $5.stdout 2>> $5.stderr
|
|
$1 $2 $3 $6 terminal terminal < $4 > /dev/null 2> /dev/null
|
|
$1 $2 $3 $6 terminal pipe < $4 2>&1 > /dev/null
|
|
$1 $2 $3 $6 terminal terminal < $4 > /dev/null 2>&1
|