diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-22 11:25:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-22 11:34:55 +0300 |
commit | eb3c27b8f47c793244436cd082512bb8235bea89 (patch) | |
tree | f48a26e4b9185ffbdabe2cbf136b7dfe6e94fc86 /tests/path-entry/testscript | |
parent | 912fbc4de72b8efbae5d49c502aad197177f03bf (diff) |
Add path-entry test
Diffstat (limited to 'tests/path-entry/testscript')
-rw-r--r-- | tests/path-entry/testscript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/path-entry/testscript b/tests/path-entry/testscript new file mode 100644 index 0000000..a9f2c2e --- /dev/null +++ b/tests/path-entry/testscript @@ -0,0 +1,33 @@ +# file : tests/path-entry/testscript +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +: existing +: +{ + : file + : + : Note that the newline character is translated into 2 characters being + : printed on Windows. This why we exclude it, to get consistent behavior on + : both POSIX and Windows. + : + cat <:'abc' >=f; + $* f >>EOO + regular + 3 + EOO + + : dir + : + : Note that the size value is meaningless for directory entries. + : + mkdir -p d; + $* d >>~/EOO/ + directory + /. + EOO +} + +: non-existent +: +$* f == 1 |