| # Copyright 2009 The Go Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| x=$(echo $(6.out $2 2>&1)) # extra echo canonicalizes |
| echo $1 failed: '"'$x'"' is not '"'$3'"' |
| x=$(echo $(6.out | $2 2>&1)) # extra echo canonicalizes |
| echo $1 failed: '"'$x'"' is not '"'$3'"' |
| testit helloworld "" "Hello, world; or Καλημέρα κόσμε; or こんにちは 世界" |
| testit helloworld2 "" "Hello, world; or Καλημέρα κόσμε; or こんにちは 世界" |
| testit helloworld3 "" "hello, world can't open file; errno=2" |
| testit echo "hello, world" "hello, world" |
| alphabet=abcdefghijklmnopqrstuvwxyz |
| rot13=nopqrstuvwxyzabcdefghijklm |
| echo $alphabet | testit cat "" $alphabet |
| echo $alphabet | testit cat_rot13 "--rot13" $rot13 |
| echo $rot13 | testit cat_rot13 "--rot13" $alphabet |
| testit sortmain "" "Sunday Monday Tuesday Thursday Friday" |
| testitpipe sieve "sed 10q" "2 3 5 7 11 13 17 19 23 29" |
| testitpipe sieve "sed 10q" "2 3 5 7 11 13 17 19 23 29" |
| # server hangs; don't run it |