浏览代码

Update TFKit to v0.0.11

Alois Mahdal 9 年前
父节点
当前提交
8550e6c281
共有 2 个文件被更改,包括 17 次插入3 次删除
  1. 16
    2
      utils/tfkit/include/harness.sh
  2. 1
    1
      utils/tfkit/runtests

+ 16
- 2
utils/tfkit/include/harness.sh 查看文件

41
     #
41
     #
42
     # Create default header
42
     # Create default header
43
     #
43
     #
44
-    echo "(add $__TF_HDRCMD executable for own header)"
44
+    echo "hint = Add $__TF_HDRCMD executable for own header."
45
+    echo "hint = It should output 'key = value' pairs about"
46
+    echo "hint = your SUT ('version' at least')."
45
 }
47
 }
46
 
48
 
47
 __tf_header() {
49
 __tf_header() {
51
     local field
53
     local field
52
     local hdrcmd="$__TF_HDRCMD"
54
     local hdrcmd="$__TF_HDRCMD"
53
     test -x "$hdrcmd" || hdrcmd="__tf_default_header"
55
     test -x "$hdrcmd" || hdrcmd="__tf_default_header"
56
+    tf_think "#"
57
+    tf_think "# [tfkit.sut]"
58
+    tf_think "#"
54
     $hdrcmd \
59
     $hdrcmd \
55
       | while read field;
60
       | while read field;
56
         do
61
         do
57
             test -n "$field" || break
62
             test -n "$field" || break
58
-            tf_think "# $field"
63
+            tf_think "#     $field"
59
         done
64
         done
65
+    tf_think "#"
66
+    tf_think "# [tfkit.run]"
67
+    tf_think "#"
68
+    tf_think "#     start_time = $(date -Iseconds)"
69
+    test "$TF_FILTER_TEST" = '.*' \
70
+     || tf_think "#     TF_FILTER_TEST = $TF_FILTER_TEST"
71
+    test "$TF_FILTER_SUBTEST" = '.*' \
72
+     || tf_think "#     TF_FILTER_SUBTEST = $TF_FILTER_SUBTEST"
73
+    tf_think "#"
60
     tf_think ""
74
     tf_think ""
61
 }
75
 }
62
 
76
 

+ 1
- 1
utils/tfkit/runtests 查看文件

2
 # tfkit - Shellfu's movable test framework
2
 # tfkit - Shellfu's movable test framework
3
 # See LICENSE file for copyright and license details.
3
 # See LICENSE file for copyright and license details.
4
 
4
 
5
-TF_VERSION="0.0.10"
5
+TF_VERSION="0.0.11"
6
 
6
 
7
 die() {
7
 die() {
8
     echo "$@" && exit 9
8
     echo "$@" && exit 9