瀏覽代碼

Update TFKit to v0.0.11

Alois Mahdal 8 年之前
父節點
當前提交
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,7 +41,9 @@ __tf_default_header() {
41 41
     #
42 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 49
 __tf_header() {
@@ -51,12 +53,24 @@ __tf_header() {
51 53
     local field
52 54
     local hdrcmd="$__TF_HDRCMD"
53 55
     test -x "$hdrcmd" || hdrcmd="__tf_default_header"
56
+    tf_think "#"
57
+    tf_think "# [tfkit.sut]"
58
+    tf_think "#"
54 59
     $hdrcmd \
55 60
       | while read field;
56 61
         do
57 62
             test -n "$field" || break
58
-            tf_think "# $field"
63
+            tf_think "#     $field"
59 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 74
     tf_think ""
61 75
 }
62 76
 

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

@@ -2,7 +2,7 @@
2 2
 # tfkit - Shellfu's movable test framework
3 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 7
 die() {
8 8
     echo "$@" && exit 9