From 5007870b52aa549971824959a55ad3bb886f09e0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Sep 2018 16:37:32 +0200 Subject: Rename .test/test{} to .testscript/testscript{} --- tests/test/script/builtin/cat.testscript | 84 ++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 tests/test/script/builtin/cat.testscript (limited to 'tests/test/script/builtin/cat.testscript') diff --git a/tests/test/script/builtin/cat.testscript b/tests/test/script/builtin/cat.testscript new file mode 100644 index 0000000..b72edb4 --- /dev/null +++ b/tests/test/script/builtin/cat.testscript @@ -0,0 +1,84 @@ +# file : tests/test/script/builtin/cat.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +.include ../common.testscript + +: in +: +$c <>EOO +foo +bar +EOF +foo +bar +EOO +EOI + +: dash +: +$c <>EOO +foo +bar +EOF +foo +bar +EOO +EOI + +: file +: +$c <=out; +foo +bar +EOF +cat out >>EOO +foo +bar +EOO +EOI + +: in-repeat +: +$c <>EOO +foo +bar +EOF +foo +bar +EOO +EOI + +: non-existent +: +$c <>/~%EOE% != 0 +%cat: unable to print '.+/test/cat/non-existent/test/1/in': .+% +EOE +EOI + +: empty-path +: +: Cat an empty path. +: +$c <"cat: invalid path ''" == 1 +EOI + +: big +: +: Cat a big file (about 100K) to test that the builtin is asynchronous. +: +{ + $c <"$s" + EOI +} -- cgit v1.1