diff options
Diffstat (limited to '')
-rw-r--r-- | test/testcases/options | 23 | ||||
-rw-r--r-- | test/testcases/options.exp | 64 |
2 files changed, 87 insertions, 0 deletions
diff --git a/test/testcases/options b/test/testcases/options new file mode 100644 index 0000000..44f331b --- /dev/null +++ b/test/testcases/options @@ -0,0 +1,23 @@ +session Options +options +reset +pager cat +editor vi +show +check-frequency never +check-mode nosuchever +colorscheme normal,yellow,cyan,red,green,magenta +colorscheme normal,yellow,cyan,red +pager nosuchprogram +skill-level operator +skill-level joe +skill-level expert +output plain +output misplain +wait true +wait off +wait happy +show +save +. +options show diff --git a/test/testcases/options.exp b/test/testcases/options.exp new file mode 100644 index 0000000..f13d308 --- /dev/null +++ b/test/testcases/options.exp @@ -0,0 +1,64 @@ +.TRY Options +.INP: options +.INP: reset +.INP: pager cat +.INP: editor vi +.INP: show +editor "vi" +pager "cat" +user "" +skill-level "expert" +output "color" +colorscheme "yellow,normal,cyan,red,green,magenta" +sort-elements "yes" +check-frequency "always" +check-mode "strict" +wait "no" +add-quotes "yes" +manage-children "ask" +.INP: check-frequency never +.INP: check-mode nosuchever +ERROR: nosuchever not valid (choose one from strict,relaxed) +.INP: colorscheme normal,yellow,cyan,red,green,magenta +.INP: colorscheme normal,yellow,cyan,red +ERROR: bad color scheme: normal,yellow,cyan,red +.INP: pager nosuchprogram +ERROR: nosuchprogram does not exist or is not a program +.INP: skill-level operator +.INP: skill-level joe +ERROR: joe not valid (choose one from operator,administrator,expert) +.INP: skill-level expert +.INP: output plain +.INP: output misplain +ERROR: misplain not valid (choose one from plain,color,uppercase) +.INP: wait true +.INP: wait off +.INP: wait happy +ERROR: happy not valid (yes or no are valid) +.INP: show +editor "vi" +pager "cat" +user "" +skill-level "expert" +output "plain" +colorscheme "normal,yellow,cyan,red,green,magenta" +sort-elements "yes" +check-frequency "never" +check-mode "strict" +wait "off" +add-quotes "yes" +manage-children "ask" +.INP: save +.TRY options show +editor "vi" +pager "cat" +user "" +skill-level "expert" +output "plain" +colorscheme "normal,yellow,cyan,red,green,magenta" +sort-elements "yes" +check-frequency "never" +check-mode "strict" +wait "off" +add-quotes "yes" +manage-children "ask" |