Update Git to version 1.7.0 (plus a few 4msysgit-specific patches)
[msysgit.git] / share / msysGit / run-tests.sh
blob3152127fed722182b77b0025a94b042a2d70615f
1 #!/bin/sh
3 # This list was generated after a run of "make test" using generate_skip_list
5 export GIT_SKIP_TESTS='
6 t1300.70
7 t1300.71
8 t4201.3
9 t5000.12
10 t5530.6
11 t5560.2
12 t5560.3
13 t5560.4
14 t5560.5
15 t5560.6
16 t5560.7
17 t5560.8
18 t5560.9
19 t5560.10
20 t5560.11
21 t5560.12
22 t5560.13
23 t7602.3
24 t7602.4
25 t7602.5
26 t9001.8
27 t9001.10
28 t9001.12
29 t9500.1
30 t9500.2
31 t9500.3
32 t9500.4
33 t9500.5
34 t9500.6
35 t9500.7
36 t9500.8
37 t9500.10
38 t9500.11
39 t9500.12
40 t9500.13
41 t9500.14
42 t9500.15
43 t9500.16
44 t9500.17
45 t9500.18
46 t9500.19
47 t9500.20
48 t9500.21
49 t9500.22
50 t9500.23
51 t9500.24
52 t9500.25
53 t9500.26
54 t9500.27
55 t9500.28
56 t9500.29
57 t9500.30
58 t9500.32
59 t9500.33
60 t9500.34
61 t9500.35
62 t9500.36
63 t9500.38
64 t9500.39
65 t9500.40
66 t9500.41
67 t9500.42
68 t9500.43
69 t9500.44
70 t9500.45
71 t9500.47
72 t9500.48
73 t9500.50
74 t9500.51
75 t9500.52
76 t9500.53
77 t9500.54
78 t9500.55
79 t9500.56
80 t9500.57
81 t9500.58
82 t9500.59
83 t9500.60
84 t9500.61
85 t9500.62
86 t9500.63
87 t9500.64
88 t9500.65
89 t9500.66
90 t9500.67
91 t9500.68
92 t9500.69
93 t9500.70
94 t9500.71
95 t9500.72
96 t9500.73
97 t9500.74
98 t9500.75
99 t9500.76
100 t9500.77
101 t9500.78
102 t9500.79
103 t9500.80
104 t9500.81
105 t9500.82
106 t9500.83
107 t9500.84
108 t9500.85
109 t9500.86
110 t9500.87
111 t9501.1
112 t9501.2
113 t9501.3
114 t9501.4
115 t9501.5
116 t9501.6
117 t9501.7
118 t9501.8
119 t9501.9
120 t9501.10
121 t9502.2
122 t9502.3
123 t9502.4
124 t9502.5
125 t9502.6
126 t9502.7
127 t9502.8
128 t9502.9
129 t9502.10
132 #echo "$GIT_SKIP_TESTS" | tr '\n' ' '; exit
133 export NO_SVN_TESTS=t
134 case " $*" in
135 *' -j'*) ;;
136 *) PARALLEL_MAKE=-j5;;
137 esac
139 generate_skip_list () {
140 cd /git/t
141 for d in trash*
143 name=${d#trash directory.}
144 short=${name%%-*}
145 sh $name.sh |
146 sed -n "s/.*FAIL \([0-9]*\).*/$short.\1/p"
147 done
150 test generate_skip_list = "$1" && {
151 generate_skip_list
152 exit
155 get_test_name () {
156 echo "$*" | sed 's/.* \(t[0-9].*\)\.sh .*/\1/'
159 get_finished_tests () {
160 REMAINING_TESTS=
161 for t in $CURRENT_TESTS
163 f=$(grep failed t/test-results/${t%.sh}-[1-9]* 2> /dev/null)
164 if test ! -z "$f"
165 then
166 printf '%70s ' $(cd t && echo $t*.sh)
167 if test "failed 0" = "$f"
168 then
169 echo -e '\033[32mok\033[0m'
170 else
171 FAILED_TESTS="$FAILED_TESTS $t"
172 echo -e '\033[31mfailed\033[0m'
174 else
175 REMAINING_TESTS="$REMAINING_TESTS $t"
177 done
178 CURRENT_TESTS="$REMAINING_TESTS"
181 cd /git &&
182 echo make $PARALLEL_MAKE &&
183 (cd t &&
184 rm -rf test-results &&
185 time make $PARALLEL_MAKE -k "$@") 2>&1 |
187 CURRENT_TESTS=
188 FAILED_TESTS=
189 while read line
191 case "$line" in
192 "*** t"*)
193 TEST_NAME=$(get_test_name "$line")
194 CURRENT_TESTS="$CURRENT_TESTS $TEST_NAME"
195 printf "Currently running $(echo "$CURRENT_TESTS" |
196 sed 's/-[^ ]*//g')\\r"
198 '* passed'*)
199 get_finished_tests
201 esac
202 done
203 test -z "$FAILED_TESTS" || echo "These tests failed: $FAILED_TESTS"
204 test -z "$CURRENT_TESTS" || echo "Unfinished tests: $CURRENT_TESTS")