diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-30 23:31:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-31 15:54:40 +0300 |
commit | 7cf026b8989a71a0d0e775e21e697ba9f1bee987 (patch) | |
tree | 9d7b78c91d1dae66bf2faabba7aa9acc11a17f6d /tests/test/script/builtin/echo.test | |
parent | 749f748ae6ded6e229214d2dddf3c45482bffbd3 (diff) |
Move builtin and runner tests to '$c ... && $b' pattern
Diffstat (limited to 'tests/test/script/builtin/echo.test')
-rw-r--r-- | tests/test/script/builtin/echo.test | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/test/script/builtin/echo.test b/tests/test/script/builtin/echo.test index 967e330..9e49a91 100644 --- a/tests/test/script/builtin/echo.test +++ b/tests/test/script/builtin/echo.test @@ -6,10 +6,20 @@ : string : -$c <'echo foo >foo'; -$b +$c <'echo foo >foo' && $b : strings : -$c <'echo foo bar >"foo bar"'; -$b +$c <'echo foo bar >"foo bar"' && $b + +: big +: +: Echo a big string (about 3MB) to test that the builtin is asynchronous. +: +{ + s="------------------------------------------------------------------------" + s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s" + s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s" + s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s" + $c <"echo '$s' | cat >'$s'" && $b +} |