Explorar el Código

Update TFKit to v0.0.6

Alois Mahdal hace 9 años
padre
commit
ba48306017
Se han modificado 2 ficheros con 6 adiciones y 3 borrados
  1. 5
    2
      utils/tfkit/include/tools.sh
  2. 1
    1
      utils/tfkit/runtests

+ 5
- 2
utils/tfkit/include/tools.sh Ver fichero

@@ -28,6 +28,9 @@ tf_testflt() {
28 28
     local o_es="0"              # oralce: exit status
29 29
     local r_out r_err r_es      # result: ^ ^ ^ those 3
30 30
 
31
+    local diff=diff
32
+    type colordiff >/dev/null 2>/dev/null && diff=colordiff
33
+
31 34
     # get args
32 35
     #
33 36
     local orig_args="$0 $*"
@@ -77,7 +80,7 @@ tf_testflt() {
77 80
     # eval/report/exit
78 81
     #
79 82
     test $r_es = $o_es || { tf_warn "bad exit status: $r_es (need $o_es)" ; t_es=$TF_ES_FAIL; }
80
-    diff -u "$o_err" "$r_err" || t_es=$TF_ES_FAIL
81
-    diff -u "$o_out" "$r_out" || t_es=$TF_ES_FAIL
83
+    $diff -u "$o_err" "$r_err" || t_es=$TF_ES_FAIL
84
+    $diff -u "$o_out" "$r_out" || t_es=$TF_ES_FAIL
82 85
     return $t_es
83 86
 }

+ 1
- 1
utils/tfkit/runtests Ver fichero

@@ -2,7 +2,7 @@
2 2
 # ffoo test framework
3 3
 # See LICENSE file for copyright and license details.
4 4
 
5
-TF_VERSION="0.0.5"
5
+TF_VERSION="0.0.6"
6 6
 
7 7
 die() {
8 8
     echo "$@" && exit 9