From: Pawel Szewczyk Date: Wed, 27 Aug 2014 15:24:37 +0000 (+0200) Subject: gt: tests: Add gadget create and rm commands parsing tests X-Git-Tag: accepted/tizen/3.0/common/20161114.110810~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fe1324c3bdb29828c5d5c935c1150830e27dbc5;p=platform%2Fupstream%2Fgt.git gt: tests: Add gadget create and rm commands parsing tests Change-Id: Id064795de13162d3ba0e9afffc3ce59301e99db6 Signed-off-by: Pawel Szewczyk Signed-off-by: Krzysztof Opasiak --- diff --git a/source/test.bash b/source/test.bash index 2b2a39e..589b9a8 100755 --- a/source/test.bash +++ b/source/test.bash @@ -70,4 +70,19 @@ expect_failure "settings detach badopt badval"; expect_failure "settings detach lookup-path and more"; expect_failure "settings detach lookup-path"; +expect_success "create gadget1" "name=gadget1, force=0"; +expect_success "create -f gadget2" "name=gadget2, force=1"; +expect_success "create -f gadget2 attr=val" "name=gadget2, force=1, attr=val"; +expect_success "create --force gadget3 attr1=val1 attr2=val2"\ + "name=gadget3, force=1, attr1=val1, attr2=val2"; +expect_success "rm gadget1" "name=gadget1, force=0, recursive=0"; +expect_success "rm -r gadget2" "name=gadget2, force=0, recursive=1"; +expect_success "rm -f gadget3" "name=gadget3, force=1, recursive=0"; +expect_success "rm -rf gadget4" "name=gadget4, force=1, recursive=1"; + +expect_failure "create gadget1 --verbose"; +expect_failure "create gadget1 and more"; +expect_failure "create"; +expect_failure "rm -rf gadget gadget"; +expect_failure "rm"; echo "Testing finished, $SUCCESS_COUNT tests passed, $ERROR_COUNT failed.";