diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-03 16:18:11 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-03 16:18:11 +0100 |
commit | 4e23ce966b8e6697784518ab75cb35517bba23d0 (patch) | |
tree | 0b64a4207446981e422c6056c822745394c62b46 /tests | |
parent | 639c585b8eb617057605c4fc6e20cd6ccbf777ad (diff) |
lib-ui implementation (cli+dia) for ask_option + tests directory to test it
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test-menus.sh b/tests/test-menus.sh new file mode 100644 index 0000000..58b2ba5 --- /dev/null +++ b/tests/test-menus.sh @@ -0,0 +1,12 @@ +basedir=$(dirname "`dirname $0`") +source $basedir/src/core/libs/lib-ui.sh +ANSWER="/tmp/.dialog-answer" + + +var_UI_TYPE=dia +ask_option no 'menu title is this yes yes' tagA itemA "tag B" 'item B' tag-c item\ C +echo "return code was $?" + +var_UI_TYPE=cli +ask_option tag-c 'menu title is this yes yes' tagA itemA "tag B" 'item B' tag-c item\ C +echo "return code was $?"
\ No newline at end of file |