| Index: tests/standalone/src/DartStdIOPipeTest.sh
|
| diff --git a/tests/standalone/src/DartStdIOPipeTest.sh b/tests/standalone/src/DartStdIOPipeTest.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..9677dc7d4473866ea0a0cd9e11892e57d8773b39
|
| --- /dev/null
|
| +++ b/tests/standalone/src/DartStdIOPipeTest.sh
|
| @@ -0,0 +1,13 @@
|
| +#! /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.
|
| +
|
| +# Test piping and stdio file redirection.
|
| +echo "Hello" | $1 $2 $3 2>&1 | cat - > $4
|
| +$1 $2 $3 < $4 > $5.stdout 2> $5.stderr
|
| +$1 $2 $3 < $4 >> $5.stdout 2>> $5.stderr
|
|
|