diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-22 22:37:40 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-24 21:37:58 +0300 |
commit | 72945d9c8eee18aed1550c3f42dc41e6a8a0f029 (patch) | |
tree | 9fdfe1c3bf48d0e303dc435c40116dacf48286b3 /tests/test/script/builtin/ln.testscript | |
parent | 83bb02cada0b894d9134cc5489999e0f0fe8bd7c (diff) |
Use CLI-generated classes to parse testscript builtin options
Diffstat (limited to 'tests/test/script/builtin/ln.testscript')
-rw-r--r-- | tests/test/script/builtin/ln.testscript | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test/script/builtin/ln.testscript b/tests/test/script/builtin/ln.testscript index 4e1ea92..072c197 100644 --- a/tests/test/script/builtin/ln.testscript +++ b/tests/test/script/builtin/ln.testscript @@ -4,12 +4,18 @@ .include ../common.testscript +: unknown-option +: +$c <<EOI && $b +ln -u 2>"ln: unknown option '-u'" == 1 +EOI + : args : { : -s-option : - $c <'ln 2>"ln: missing -s option" == 1' && $b + $c <'ln 2>"ln: missing -s|--symbolic option" == 1' && $b : none : |