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/mkdir.testscript | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 tests/test/script/builtin/mkdir.testscript (limited to 'tests/test/script/builtin/mkdir.testscript') diff --git a/tests/test/script/builtin/mkdir.testscript b/tests/test/script/builtin/mkdir.testscript new file mode 100644 index 0000000..6b082bd --- /dev/null +++ b/tests/test/script/builtin/mkdir.testscript @@ -0,0 +1,66 @@ +# file : tests/test/script/builtin/mkdir.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +.include ../common.testscript + +: dirs +: +$c <"mkdir: missing directory" == 1' && $b + +: empty-path +: +: Test creation of empty directory path. +: +$c <"mkdir: invalid path ''" == 1 +EOI + +: already-exists +: +: Test creation of an existing directory. +: +$c <>/~%EOE% == 1 +%mkdir: unable to create directory '.+/test/mkdir/already-exists/test/1/a': .+% +EOE +EOI + +: not-exists +: +: Test creation of a directory with non-existent parent. +: +$c <>/~%EOE% == 1 +%mkdir: unable to create directory '.+/test/mkdir/not-exists/test/1/a/b': .+% +EOE +EOI -- cgit v1.1