gt: tests: Add config template commands parsing tests
authorPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 26 Aug 2014 13:32:41 +0000 (15:32 +0200)
committerPawel Szewczyk <p.szewczyk@samsung.com>
Fri, 29 Aug 2014 12:58:02 +0000 (14:58 +0200)
Change-Id: Ie9675871078a0afa4f743d9e021803589a262aac
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
source/test.bash

index eef2a08..a84e946 100755 (executable)
@@ -239,4 +239,24 @@ expect_failure "config del gadget1 conf1 func";
 expect_failure "config del";
 expect_failure "config del gadget1 conf type name more";
 
+expect_success "config template"\
+       "verbose=0, recursive=0";
+expect_success "config template name"\
+       "name=name, verbose=0, recursive=0";
+expect_success "config template get name"\
+       "name=name, attr=";
+expect_success "config template set name attr=val"\
+       "name=name, attr=val";
+expect_success "config template rm name"\
+       "name=name";
+
+expect_failure "config template name1 name2";
+expect_failure "config template get";
+expect_failure "config template --force";
+expect_failure "config template -f name";
+expect_failure "config template set name";
+expect_failure "config tempalte set name attr";
+expect_failure "config template rm name1 name2";
+expect_failure "config template set";
+
 echo "Testing finished, $SUCCESS_COUNT tests passed, $ERROR_COUNT failed.";