Browse Source

Finish and re-enable listing mode acceptance tests

Alois Mahdal 9 years ago
parent
commit
1893046bc6

+ 6
- 0
test/data/config_cfgrep/list_keys.oracle.stdout View File

@@ -1,2 +1,8 @@
1 1
 key1
2
+key1
3
+key2
4
+key2
5
+key1
6
+key1
7
+key2
2 8
 key2

+ 1
- 1
test/data/config_cfgrep/list_paths View File

@@ -1,5 +1,5 @@
1 1
 # desc: list paths
2
-# cmd: cfgrep -L paths
2
+# cmd: cfgrep -l -
3 3
 
4 4
 [section1]
5 5
 free form in s1

+ 4
- 0
test/data/config_cfgrep/list_paths.oracle.stdout View File

@@ -1,4 +1,8 @@
1 1
 section1.key1
2
+section1.key1
3
+section1.key2
2 4
 section1.key2
3 5
 section2.key1
6
+section2.key1
7
+section2.key2
4 8
 section2.key2

+ 1
- 1
test/data/config_cfgrep/list_sections View File

@@ -1,5 +1,5 @@
1 1
 # desc: list sections
2
-# cmd: cfgrep -L sections
2
+# cmd: cfgrep -L sections -
3 3
 
4 4
 [section1]
5 5
 free form in s1

+ 3
- 3
test/scripts/config_cfgrep View File

@@ -29,9 +29,9 @@ tf_enum_subtests() {
29 29
     echo "tricks_with_strange_naming"
30 30
     echo "strict_and_space"
31 31
     echo "strict_and_tab"
32
-#   echo "list_keys"        # not implemented
33
-#   echo "list_paths"       # not implemented
34
-#   echo "list_sections"    # not implemented
32
+    echo "list_keys"
33
+    echo "list_paths"
34
+    echo "list_sections"
35 35
 }
36 36
 
37 37
 tf_do_subtests