diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-10-27 12:10:58 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | adf27f5e17f4de774b3121c3669e3947ad4c9ca5 (patch) | |
tree | 8d81b3c921bd54a3358b621dd2945f36a167d03b /unit-tests/test/script/parser/cleanup.test | |
parent | 2b8601ca72b7b3cbb3b76d96102e9607efab16b7 (diff) |
Add support of cleanups to testscript parser
Diffstat (limited to 'unit-tests/test/script/parser/cleanup.test')
-rw-r--r-- | unit-tests/test/script/parser/cleanup.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/cleanup.test b/unit-tests/test/script/parser/cleanup.test new file mode 100644 index 0000000..7fe746d --- /dev/null +++ b/unit-tests/test/script/parser/cleanup.test @@ -0,0 +1,35 @@ +$* <<EOI >>EOO # file-dir +cmd &file &dir/ +EOI +cmd &file &dir/ +EOO + +$* <<EOI >>EOO # quote-file-dir +cmd &"f ile" &"d ir/" +EOI +cmd &"f ile" &"d ir/" +EOO + +$* <<EOI >>EOO # dup-file +cmd &file &file +EOI +cmd &file &file +EOO + +$* <<EOI 2>>EOE != 0 # file-fail1 +cmd & >file +EOI +testscript:1:7: error: missing cleanup path +EOE + +$* <<EOI 2>>EOE != 0 # file-fail2 +cmd & +EOI +testscript:1:6: error: missing cleanup path +EOE + +$* <<EOI 2>>EOE != 0 # file-fail3 +cmd &"" +EOI +testscript:1:6: error: empty cleanup path +EOE |