Clean up some files not taken care of by the gcc updates
[msysgit.git] / share / msysGit / run-tests.sh
blobe6be5c329517c0637c883ee6dc151e1527e2ca8e
1 #!/bin/sh
3 # This list was generated after a run of "make test" using generate_skip_list
5 export GIT_SKIP_TESTS='
6 t0060.2
7 t0060.5
8 t0060.6
9 t0060.7
10 t0060.9
11 t0060.10
12 t0060.11
13 t0060.12
14 t0060.13
15 t0060.14
16 t0060.15
17 t0060.16
18 t0060.17
19 t0060.18
20 t0060.19
21 t0060.21
22 t0060.22
23 t0060.23
24 t0060.24
25 t0060.25
26 t0060.32
27 t0060.42
28 t0060.43
29 t0060.44
30 t0060.46
31 t0060.49
32 t0060.50
33 t0060.52
34 t0060.53
35 t0060.58
36 t0060.59
37 t0060.60
38 t0060.61
39 t0060.62
40 t0060.63
41 t0060.64
42 t0060.65
43 t1301.2
44 t1301.3
45 t1504.23
46 t1504.24
47 t1504.25
48 t4252.7
49 t6031.1
50 t6031.2
51 t7502.18
52 t7502.19
55 #echo "$GIT_SKIP_TESTS" | tr '\n' ' '; exit
56 export NO_SVN_TESTS=t
57 case " $*" in
58 *' -j'*) ;;
59 *) PARALLEL_MAKE=-j5;;
60 esac
62 generate_skip_list () {
63 cd /git/t
64 for d in trash*
66 name=${d#trash directory.}
67 short=${name%%-*}
68 sh $name.sh |
69 sed -n "s/.*FAIL \([0-9]*\).*/$short.\1/p"
70 done
73 test generate_skip_list = "$1" && {
74 generate_skip_list
75 exit
78 get_test_name () {
79 echo "$*" | sed 's/.* \(t[0-9].*\)\.sh .*/\1/'
82 get_finished_tests () {
83 REMAINING_TESTS=
84 for t in $CURRENT_TESTS
86 f=$(grep failed t/test-results/${t%.sh}-[1-9]* 2> /dev/null)
87 if test ! -z "$f"
88 then
89 printf '%70s ' $(cd t && echo $t*.sh)
90 if test "failed 0" = "$f"
91 then
92 echo -e '\033[32mok\033[0m'
93 else
94 FAILED_TESTS="$FAILED_TESTS $t"
95 echo -e '\033[31mfailed\033[0m'
97 else
98 REMAINING_TESTS="$REMAINING_TESTS $t"
100 done
101 CURRENT_TESTS="$REMAINING_TESTS"
104 cd /git &&
105 echo make $PARALLEL_MAKE &&
106 (cd t &&
107 rm -rf test-results &&
108 time make $PARALLEL_MAKE -k "$@") 2>&1 |
110 CURRENT_TESTS=
111 FAILED_TESTS=
112 while read line
114 case "$line" in
115 "*** t"*)
116 TEST_NAME=$(get_test_name "$line")
117 CURRENT_TESTS="$CURRENT_TESTS $TEST_NAME"
118 printf "Currently running $(echo "$CURRENT_TESTS" |
119 sed 's/-[^ ]*//g')\\r"
121 '* passed'*)
122 get_finished_tests
124 esac
125 done
126 test -z "$FAILED_TESTS" || echo "These tests failed: $FAILED_TESTS"
127 test -z "$CURRENT_TESTS" || echo "Unfinished tests: $CURRENT_TESTS")