正在显示
2 个修改的文件
包含
51 行增加
和
42 行删除
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | -bash scripts/test_configure.sh && ./objs/srs_utest | 3 | +echo "Usage: $0 [-jN]" |
4 | +echo " -jN The make jobs, for example, -j8 to use 8cpu to make" | ||
5 | + | ||
6 | +params="$@" | ||
7 | +echo "params is: $params" | ||
8 | + | ||
9 | +bash scripts/test_configure.sh $params && ./objs/srs_utest | ||
4 | ret=$?; if [[ 0 -ne $ret ]]; then echo "configure test and utest failed."; exit $ret; fi | 10 | ret=$?; if [[ 0 -ne $ret ]]; then echo "configure test and utest failed."; exit $ret; fi |
5 | echo "configure test and utest success"; | 11 | echo "configure test and utest success"; |
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | +params="$@" | ||
4 | +echo "params is: $params" | ||
5 | + | ||
3 | # discover the current work dir, the log and access. | 6 | # discover the current work dir, the log and access. |
4 | echo "argv[0]=$0" | 7 | echo "argv[0]=$0" |
5 | if [[ ! -f $0 ]]; then | 8 | if [[ ! -f $0 ]]; then |
@@ -19,181 +22,181 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi | @@ -19,181 +22,181 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi | ||
19 | 22 | ||
20 | item="./configure" | 23 | item="./configure" |
21 | ok_msg "test \" ${item} \"" | 24 | ok_msg "test \" ${item} \"" |
22 | -($item && make) >>$log 2>&1 | 25 | +($item && make $params) >>$log 2>&1 |
23 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 26 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
24 | ok_msg "test \" ${item} \" success" | 27 | ok_msg "test \" ${item} \" success" |
25 | 28 | ||
26 | item="./configure --x86-x64" | 29 | item="./configure --x86-x64" |
27 | ok_msg "test \" ${item} \"" | 30 | ok_msg "test \" ${item} \"" |
28 | -($item && make) >>$log 2>&1 | 31 | +($item && make $params) >>$log 2>&1 |
29 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 32 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
30 | ok_msg "test \" ${item} \" success" | 33 | ok_msg "test \" ${item} \" success" |
31 | 34 | ||
32 | item="./configure --disable-all" | 35 | item="./configure --disable-all" |
33 | ok_msg "test \" ${item} \"" | 36 | ok_msg "test \" ${item} \"" |
34 | -($item && make) >>$log 2>&1 | 37 | +($item && make $params) >>$log 2>&1 |
35 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 38 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
36 | ok_msg "test \" ${item} \" success" | 39 | ok_msg "test \" ${item} \" success" |
37 | 40 | ||
38 | item="./configure --fast" | 41 | item="./configure --fast" |
39 | ok_msg "test \" ${item} \"" | 42 | ok_msg "test \" ${item} \"" |
40 | -($item && make) >>$log 2>&1 | 43 | +($item && make $params) >>$log 2>&1 |
41 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 44 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
42 | ok_msg "test \" ${item} \" success" | 45 | ok_msg "test \" ${item} \" success" |
43 | 46 | ||
44 | item="./configure --pure-rtmp" | 47 | item="./configure --pure-rtmp" |
45 | ok_msg "test \" ${item} \"" | 48 | ok_msg "test \" ${item} \"" |
46 | -($item && make) >>$log 2>&1 | 49 | +($item && make $params) >>$log 2>&1 |
47 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 50 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
48 | ok_msg "test \" ${item} \" success" | 51 | ok_msg "test \" ${item} \" success" |
49 | 52 | ||
50 | item="./configure --rtmp-hls" | 53 | item="./configure --rtmp-hls" |
51 | ok_msg "test \" ${item} \"" | 54 | ok_msg "test \" ${item} \"" |
52 | -($item && make) >>$log 2>&1 | 55 | +($item && make $params) >>$log 2>&1 |
53 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 56 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
54 | ok_msg "test \" ${item} \" success" | 57 | ok_msg "test \" ${item} \" success" |
55 | 58 | ||
56 | item="./configure --fast --with-ssl" | 59 | item="./configure --fast --with-ssl" |
57 | ok_msg "test \" ${item} \"" | 60 | ok_msg "test \" ${item} \"" |
58 | -($item && make) >>$log 2>&1 | 61 | +($item && make $params) >>$log 2>&1 |
59 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 62 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
60 | ok_msg "test \" ${item} \" success" | 63 | ok_msg "test \" ${item} \" success" |
61 | 64 | ||
62 | item="./configure --fast --with-hls" | 65 | item="./configure --fast --with-hls" |
63 | ok_msg "test \" ${item} \"" | 66 | ok_msg "test \" ${item} \"" |
64 | -($item && make) >>$log 2>&1 | 67 | +($item && make $params) >>$log 2>&1 |
65 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 68 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
66 | ok_msg "test \" ${item} \" success" | 69 | ok_msg "test \" ${item} \" success" |
67 | 70 | ||
68 | item="./configure --fast --with-dvr" | 71 | item="./configure --fast --with-dvr" |
69 | ok_msg "test \" ${item} \"" | 72 | ok_msg "test \" ${item} \"" |
70 | -($item && make) >>$log 2>&1 | 73 | +($item && make $params) >>$log 2>&1 |
71 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 74 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
72 | ok_msg "test \" ${item} \" success" | 75 | ok_msg "test \" ${item} \" success" |
73 | 76 | ||
74 | item="./configure --fast --with-nginx" | 77 | item="./configure --fast --with-nginx" |
75 | ok_msg "test \" ${item} \"" | 78 | ok_msg "test \" ${item} \"" |
76 | -($item && make) >>$log 2>&1 | 79 | +($item && make $params) >>$log 2>&1 |
77 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 80 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
78 | ok_msg "test \" ${item} \" success" | 81 | ok_msg "test \" ${item} \" success" |
79 | 82 | ||
80 | item="./configure --fast --with-http-callback" | 83 | item="./configure --fast --with-http-callback" |
81 | ok_msg "test \" ${item} \"" | 84 | ok_msg "test \" ${item} \"" |
82 | -($item && make) >>$log 2>&1 | 85 | +($item && make $params) >>$log 2>&1 |
83 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 86 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
84 | ok_msg "test \" ${item} \" success" | 87 | ok_msg "test \" ${item} \" success" |
85 | 88 | ||
86 | item="./configure --fast --with-http-server" | 89 | item="./configure --fast --with-http-server" |
87 | ok_msg "test \" ${item} \"" | 90 | ok_msg "test \" ${item} \"" |
88 | -($item && make) >>$log 2>&1 | 91 | +($item && make $params) >>$log 2>&1 |
89 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 92 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
90 | ok_msg "test \" ${item} \" success" | 93 | ok_msg "test \" ${item} \" success" |
91 | 94 | ||
92 | item="./configure --fast --with-http-api" | 95 | item="./configure --fast --with-http-api" |
93 | ok_msg "test \" ${item} \"" | 96 | ok_msg "test \" ${item} \"" |
94 | -($item && make) >>$log 2>&1 | 97 | +($item && make $params) >>$log 2>&1 |
95 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 98 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
96 | ok_msg "test \" ${item} \" success" | 99 | ok_msg "test \" ${item} \" success" |
97 | 100 | ||
98 | item="./configure --fast --with-ffmpeg" | 101 | item="./configure --fast --with-ffmpeg" |
99 | ok_msg "test \" ${item} \"" | 102 | ok_msg "test \" ${item} \"" |
100 | -($item && make) >>$log 2>&1 | 103 | +($item && make $params) >>$log 2>&1 |
101 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 104 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
102 | ok_msg "test \" ${item} \" success" | 105 | ok_msg "test \" ${item} \" success" |
103 | 106 | ||
104 | item="./configure --fast --with-transcode" | 107 | item="./configure --fast --with-transcode" |
105 | ok_msg "test \" ${item} \"" | 108 | ok_msg "test \" ${item} \"" |
106 | -($item && make) >>$log 2>&1 | 109 | +($item && make $params) >>$log 2>&1 |
107 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 110 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
108 | ok_msg "test \" ${item} \" success" | 111 | ok_msg "test \" ${item} \" success" |
109 | 112 | ||
110 | item="./configure --fast --with-ingest" | 113 | item="./configure --fast --with-ingest" |
111 | ok_msg "test \" ${item} \"" | 114 | ok_msg "test \" ${item} \"" |
112 | -($item && make) >>$log 2>&1 | 115 | +($item && make $params) >>$log 2>&1 |
113 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 116 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
114 | ok_msg "test \" ${item} \" success" | 117 | ok_msg "test \" ${item} \" success" |
115 | 118 | ||
116 | item="./configure --fast --with-librtmp" | 119 | item="./configure --fast --with-librtmp" |
117 | ok_msg "test \" ${item} \"" | 120 | ok_msg "test \" ${item} \"" |
118 | -($item && make) >>$log 2>&1 | 121 | +($item && make $params) >>$log 2>&1 |
119 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 122 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
120 | ok_msg "test \" ${item} \" success" | 123 | ok_msg "test \" ${item} \" success" |
121 | 124 | ||
122 | item="./configure --fast --with-research" | 125 | item="./configure --fast --with-research" |
123 | ok_msg "test \" ${item} \"" | 126 | ok_msg "test \" ${item} \"" |
124 | -($item && make) >>$log 2>&1 | 127 | +($item && make $params) >>$log 2>&1 |
125 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 128 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
126 | ok_msg "test \" ${item} \" success" | 129 | ok_msg "test \" ${item} \" success" |
127 | 130 | ||
128 | item="./configure --fast--with-stream-caster" | 131 | item="./configure --fast--with-stream-caster" |
129 | ok_msg "test \" ${item} \"" | 132 | ok_msg "test \" ${item} \"" |
130 | -($item && make) >>$log 2>&1 | 133 | +($item && make $params) >>$log 2>&1 |
131 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 134 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
132 | ok_msg "test \" ${item} \" success" | 135 | ok_msg "test \" ${item} \" success" |
133 | 136 | ||
134 | item="./configure --fast --with-utest" | 137 | item="./configure --fast --with-utest" |
135 | ok_msg "test \" ${item} \"" | 138 | ok_msg "test \" ${item} \"" |
136 | -($item && make) >>$log 2>&1 | 139 | +($item && make $params) >>$log 2>&1 |
137 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 140 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
138 | ok_msg "test \" ${item} \" success" | 141 | ok_msg "test \" ${item} \" success" |
139 | 142 | ||
140 | item="./configure --fast --with-ssl --with-utest" | 143 | item="./configure --fast --with-ssl --with-utest" |
141 | ok_msg "test \" ${item} \"" | 144 | ok_msg "test \" ${item} \"" |
142 | -($item && make) >>$log 2>&1 | 145 | +($item && make $params) >>$log 2>&1 |
143 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 146 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
144 | ok_msg "test \" ${item} \" success" | 147 | ok_msg "test \" ${item} \" success" |
145 | 148 | ||
146 | item="./configure --fast --with-gperf" | 149 | item="./configure --fast --with-gperf" |
147 | ok_msg "test \" ${item} \"" | 150 | ok_msg "test \" ${item} \"" |
148 | -($item && make) >>$log 2>&1 | 151 | +($item && make $params) >>$log 2>&1 |
149 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 152 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
150 | ok_msg "test \" ${item} \" success" | 153 | ok_msg "test \" ${item} \" success" |
151 | 154 | ||
152 | item="./configure --fast --with-gperf --with-gmc" | 155 | item="./configure --fast --with-gperf --with-gmc" |
153 | ok_msg "test \" ${item} \"" | 156 | ok_msg "test \" ${item} \"" |
154 | -($item && make) >>$log 2>&1 | 157 | +($item && make $params) >>$log 2>&1 |
155 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 158 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
156 | ok_msg "test \" ${item} \" success" | 159 | ok_msg "test \" ${item} \" success" |
157 | 160 | ||
158 | item="./configure --fast --with-gperf --with-gmp" | 161 | item="./configure --fast --with-gperf --with-gmp" |
159 | ok_msg "test \" ${item} \"" | 162 | ok_msg "test \" ${item} \"" |
160 | -($item && make) >>$log 2>&1 | 163 | +($item && make $params) >>$log 2>&1 |
161 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 164 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
162 | ok_msg "test \" ${item} \" success" | 165 | ok_msg "test \" ${item} \" success" |
163 | 166 | ||
164 | item="./configure --fast --with-gperf --with-gcp" | 167 | item="./configure --fast --with-gperf --with-gcp" |
165 | ok_msg "test \" ${item} \"" | 168 | ok_msg "test \" ${item} \"" |
166 | -($item && make) >>$log 2>&1 | 169 | +($item && make $params) >>$log 2>&1 |
167 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 170 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
168 | ok_msg "test \" ${item} \" success" | 171 | ok_msg "test \" ${item} \" success" |
169 | 172 | ||
170 | item="./configure --fast --with-gprof" | 173 | item="./configure --fast --with-gprof" |
171 | ok_msg "test \" ${item} \"" | 174 | ok_msg "test \" ${item} \"" |
172 | -($item && make) >>$log 2>&1 | 175 | +($item && make $params) >>$log 2>&1 |
173 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 176 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
174 | ok_msg "test \" ${item} \" success" | 177 | ok_msg "test \" ${item} \" success" |
175 | 178 | ||
176 | item="./configure --fast --log-verbose" | 179 | item="./configure --fast --log-verbose" |
177 | ok_msg "test \" ${item} \"" | 180 | ok_msg "test \" ${item} \"" |
178 | -($item && make) >>$log 2>&1 | 181 | +($item && make $params) >>$log 2>&1 |
179 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 182 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
180 | ok_msg "test \" ${item} \" success" | 183 | ok_msg "test \" ${item} \" success" |
181 | 184 | ||
182 | item="./configure --fast --log-info" | 185 | item="./configure --fast --log-info" |
183 | ok_msg "test \" ${item} \"" | 186 | ok_msg "test \" ${item} \"" |
184 | -($item && make) >>$log 2>&1 | 187 | +($item && make $params) >>$log 2>&1 |
185 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 188 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
186 | ok_msg "test \" ${item} \" success" | 189 | ok_msg "test \" ${item} \" success" |
187 | 190 | ||
188 | item="./configure --fast --log-trace" | 191 | item="./configure --fast --log-trace" |
189 | ok_msg "test \" ${item} \"" | 192 | ok_msg "test \" ${item} \"" |
190 | -($item && make) >>$log 2>&1 | 193 | +($item && make $params) >>$log 2>&1 |
191 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 194 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
192 | ok_msg "test \" ${item} \" success" | 195 | ok_msg "test \" ${item} \" success" |
193 | 196 | ||
194 | item="./configure --fast --log-info --log-verbose --log-trace" | 197 | item="./configure --fast --log-info --log-verbose --log-trace" |
195 | ok_msg "test \" ${item} \"" | 198 | ok_msg "test \" ${item} \"" |
196 | -($item && make) >>$log 2>&1 | 199 | +($item && make $params) >>$log 2>&1 |
197 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 200 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
198 | ok_msg "test \" ${item} \" success" | 201 | ok_msg "test \" ${item} \" success" |
199 | 202 | ||
@@ -202,25 +205,25 @@ ok_msg "test \" ${item} \" success" | @@ -202,25 +205,25 @@ ok_msg "test \" ${item} \" success" | ||
202 | ####################################################################################################### | 205 | ####################################################################################################### |
203 | item="./configure --dev" | 206 | item="./configure --dev" |
204 | ok_msg "test \" ${item} \"" | 207 | ok_msg "test \" ${item} \"" |
205 | -($item && make) >>$log 2>&1 | 208 | +($item && make $params) >>$log 2>&1 |
206 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 209 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
207 | ok_msg "test \" ${item} \" success" | 210 | ok_msg "test \" ${item} \" success" |
208 | 211 | ||
209 | item="./configure --fast-dev" | 212 | item="./configure --fast-dev" |
210 | ok_msg "test \" ${item} \"" | 213 | ok_msg "test \" ${item} \"" |
211 | -($item && make) >>$log 2>&1 | 214 | +($item && make $params) >>$log 2>&1 |
212 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 215 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
213 | ok_msg "test \" ${item} \" success" | 216 | ok_msg "test \" ${item} \" success" |
214 | 217 | ||
215 | item="./configure --demo" | 218 | item="./configure --demo" |
216 | ok_msg "test \" ${item} \"" | 219 | ok_msg "test \" ${item} \"" |
217 | -($item && make) >>$log 2>&1 | 220 | +($item && make $params) >>$log 2>&1 |
218 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 221 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
219 | ok_msg "test \" ${item} \" success" | 222 | ok_msg "test \" ${item} \" success" |
220 | 223 | ||
221 | item="./configure --full" | 224 | item="./configure --full" |
222 | ok_msg "test \" ${item} \"" | 225 | ok_msg "test \" ${item} \"" |
223 | -($item && make) >>$log 2>&1 | 226 | +($item && make $params) >>$log 2>&1 |
224 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 227 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
225 | ok_msg "test \" ${item} \" success" | 228 | ok_msg "test \" ${item} \" success" |
226 | 229 | ||
@@ -229,43 +232,43 @@ ok_msg "test \" ${item} \" success" | @@ -229,43 +232,43 @@ ok_msg "test \" ${item} \" success" | ||
229 | ####################################################################################################### | 232 | ####################################################################################################### |
230 | item="./configure --disable-all --with-ssl" | 233 | item="./configure --disable-all --with-ssl" |
231 | ok_msg "test \" ${item} \"" | 234 | ok_msg "test \" ${item} \"" |
232 | -($item && make) >>$log 2>&1 | 235 | +($item && make $params) >>$log 2>&1 |
233 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 236 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
234 | ok_msg "test \" ${item} \" success" | 237 | ok_msg "test \" ${item} \" success" |
235 | 238 | ||
236 | item="./configure --disable-all --with-hls --with-ssl --with-http-server --with-http-api" | 239 | item="./configure --disable-all --with-hls --with-ssl --with-http-server --with-http-api" |
237 | ok_msg "test \" ${item} \"" | 240 | ok_msg "test \" ${item} \"" |
238 | -($item && make) >>$log 2>&1 | 241 | +($item && make $params) >>$log 2>&1 |
239 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 242 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
240 | ok_msg "test \" ${item} \" success" | 243 | ok_msg "test \" ${item} \" success" |
241 | 244 | ||
242 | item="./configure --disable-all --with-ssl --with-hls --with-nginx" | 245 | item="./configure --disable-all --with-ssl --with-hls --with-nginx" |
243 | ok_msg "test \" ${item} \"" | 246 | ok_msg "test \" ${item} \"" |
244 | -($item && make) >>$log 2>&1 | 247 | +($item && make $params) >>$log 2>&1 |
245 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 248 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
246 | ok_msg "test \" ${item} \" success" | 249 | ok_msg "test \" ${item} \" success" |
247 | 250 | ||
248 | item="./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode" | 251 | item="./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode" |
249 | ok_msg "test \" ${item} \"" | 252 | ok_msg "test \" ${item} \"" |
250 | -($item && make) >>$log 2>&1 | 253 | +($item && make $params) >>$log 2>&1 |
251 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 254 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
252 | ok_msg "test \" ${item} \" success" | 255 | ok_msg "test \" ${item} \" success" |
253 | 256 | ||
254 | item="./configure --disable-all --with-ssl --with-ffmpeg --with-transcode" | 257 | item="./configure --disable-all --with-ssl --with-ffmpeg --with-transcode" |
255 | ok_msg "test \" ${item} \"" | 258 | ok_msg "test \" ${item} \"" |
256 | -($item && make) >>$log 2>&1 | 259 | +($item && make $params) >>$log 2>&1 |
257 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 260 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
258 | ok_msg "test \" ${item} \" success" | 261 | ok_msg "test \" ${item} \" success" |
259 | 262 | ||
260 | item="./configure --disable-all --with-ssl --with-ffmpeg --with-ingest" | 263 | item="./configure --disable-all --with-ssl --with-ffmpeg --with-ingest" |
261 | ok_msg "test \" ${item} \"" | 264 | ok_msg "test \" ${item} \"" |
262 | -($item && make) >>$log 2>&1 | 265 | +($item && make $params) >>$log 2>&1 |
263 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 266 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
264 | ok_msg "test \" ${item} \" success" | 267 | ok_msg "test \" ${item} \" success" |
265 | 268 | ||
266 | item="./configure --disable-all --with-hls --with-ssl --with-http-server" | 269 | item="./configure --disable-all --with-hls --with-ssl --with-http-server" |
267 | ok_msg "test \" ${item} \"" | 270 | ok_msg "test \" ${item} \"" |
268 | -($item && make) >>$log 2>&1 | 271 | +($item && make $params) >>$log 2>&1 |
269 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | 272 | ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
270 | ok_msg "test \" ${item} \" success" | 273 | ok_msg "test \" ${item} \" success" |
271 | 274 |
-
请 注册 或 登录 后发表评论