正在显示
1 个修改的文件
包含
108 行增加
和
100 行删除
@@ -17,155 +17,163 @@ package_dir=${build_objs}/package | @@ -17,155 +17,163 @@ package_dir=${build_objs}/package | ||
17 | log="${build_objs}/test.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log | 17 | log="${build_objs}/test.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log |
18 | ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi | 18 | ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi |
19 | 19 | ||
20 | -item="default configure" | ||
21 | -ok_msg "test ${item}" | 20 | +item="./configure" |
21 | +ok_msg "test \" ${item} \"" | ||
22 | (./configure && make) >>$log 2>&1 | 22 | (./configure && make) >>$log 2>&1 |
23 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
24 | -ok_msg "test ${item} success" | 23 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
24 | +ok_msg "test \" ${item} \" success" | ||
25 | 25 | ||
26 | -item="preset --x86-x64" | ||
27 | -ok_msg "test ${item}" | 26 | +item="./configure --x86-x64" |
27 | +ok_msg "test \" ${item} \"" | ||
28 | (./configure --x86-x64 && make) >>$log 2>&1 | 28 | (./configure --x86-x64 && make) >>$log 2>&1 |
29 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
30 | -ok_msg "test ${item} success" | 29 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
30 | +ok_msg "test \" ${item} \" success" | ||
31 | 31 | ||
32 | -item="preset --fast" | ||
33 | -ok_msg "test ${item}" | 32 | +item="./configure --fast" |
33 | +ok_msg "test \" ${item} \"" | ||
34 | (./configure --fast && make) >>$log 2>&1 | 34 | (./configure --fast && make) >>$log 2>&1 |
35 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
36 | -ok_msg "test ${item} success" | 35 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
36 | +ok_msg "test \" ${item} \" success" | ||
37 | 37 | ||
38 | -item="preset --pure-rtmp" | ||
39 | -ok_msg "test ${item}" | 38 | +item="./configure --pure-rtmp" |
39 | +ok_msg "test \" ${item} \"" | ||
40 | (./configure --pure-rtmp && make) >>$log 2>&1 | 40 | (./configure --pure-rtmp && make) >>$log 2>&1 |
41 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
42 | -ok_msg "test ${item} success" | 41 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
42 | +ok_msg "test \" ${item} \" success" | ||
43 | 43 | ||
44 | -item="preset --rtmp-hls" | ||
45 | -ok_msg "test ${item}" | 44 | +item="./configure --rtmp-hls" |
45 | +ok_msg "test \" ${item} \"" | ||
46 | (./configure --rtmp-hls && make) >>$log 2>&1 | 46 | (./configure --rtmp-hls && make) >>$log 2>&1 |
47 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
48 | -ok_msg "test ${item} success" | 47 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
48 | +ok_msg "test \" ${item} \" success" | ||
49 | 49 | ||
50 | -item="preset --fast --with-ssl" | ||
51 | -ok_msg "test ${item}" | 50 | +item="./configure --fast --with-ssl" |
51 | +ok_msg "test \" ${item} \"" | ||
52 | (./configure --fast --with-ssl && make) >>$log 2>&1 | 52 | (./configure --fast --with-ssl && make) >>$log 2>&1 |
53 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
54 | -ok_msg "test ${item} success" | 53 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
54 | +ok_msg "test \" ${item} \" success" | ||
55 | 55 | ||
56 | -item="preset --fast --with-hls" | ||
57 | -ok_msg "test ${item}" | 56 | +item="./configure --fast --with-hls" |
57 | +ok_msg "test \" ${item} \"" | ||
58 | (./configure --fast --with-hls && make) >>$log 2>&1 | 58 | (./configure --fast --with-hls && make) >>$log 2>&1 |
59 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
60 | -ok_msg "test ${item} success" | 59 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
60 | +ok_msg "test \" ${item} \" success" | ||
61 | 61 | ||
62 | -item="preset --fast --with-dvr" | ||
63 | -ok_msg "test ${item}" | 62 | +item="./configure --fast --with-dvr" |
63 | +ok_msg "test \" ${item} \"" | ||
64 | (./configure --fast --with-dvr && make) >>$log 2>&1 | 64 | (./configure --fast --with-dvr && make) >>$log 2>&1 |
65 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
66 | -ok_msg "test ${item} success" | 65 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
66 | +ok_msg "test \" ${item} \" success" | ||
67 | 67 | ||
68 | -item="preset --fast --with-nginx" | ||
69 | -ok_msg "test ${item}" | 68 | +item="./configure --fast --with-nginx" |
69 | +ok_msg "test \" ${item} \"" | ||
70 | (./configure --fast --with-nginx && make) >>$log 2>&1 | 70 | (./configure --fast --with-nginx && make) >>$log 2>&1 |
71 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
72 | -ok_msg "test ${item} success" | 71 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
72 | +ok_msg "test \" ${item} \" success" | ||
73 | 73 | ||
74 | -item="preset --fast --with-http-callback" | ||
75 | -ok_msg "test ${item}" | 74 | +item="./configure --fast --with-http-callback" |
75 | +ok_msg "test \" ${item} \"" | ||
76 | (./configure --fast --with-http-callback && make) >>$log 2>&1 | 76 | (./configure --fast --with-http-callback && make) >>$log 2>&1 |
77 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
78 | -ok_msg "test ${item} success" | 77 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
78 | +ok_msg "test \" ${item} \" success" | ||
79 | 79 | ||
80 | -item="preset --fast --with-http-server" | ||
81 | -ok_msg "test ${item}" | 80 | +item="./configure --fast --with-http-server" |
81 | +ok_msg "test \" ${item} \"" | ||
82 | (./configure --fast --with-http-server && make) >>$log 2>&1 | 82 | (./configure --fast --with-http-server && make) >>$log 2>&1 |
83 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
84 | -ok_msg "test ${item} success" | 83 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
84 | +ok_msg "test \" ${item} \" success" | ||
85 | 85 | ||
86 | -item="preset --fast --with-http-api" | ||
87 | -ok_msg "test ${item}" | 86 | +item="./configure --fast --with-http-api" |
87 | +ok_msg "test \" ${item} \"" | ||
88 | (./configure --fast --with-http-api && make) >>$log 2>&1 | 88 | (./configure --fast --with-http-api && make) >>$log 2>&1 |
89 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
90 | -ok_msg "test ${item} success" | 89 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
90 | +ok_msg "test \" ${item} \" success" | ||
91 | 91 | ||
92 | -item="preset --fast --with-ffmpeg" | ||
93 | -ok_msg "test ${item}" | 92 | +item="./configure --fast --with-ffmpeg" |
93 | +ok_msg "test \" ${item} \"" | ||
94 | (./configure --fast --with-ffmpeg && make) >>$log 2>&1 | 94 | (./configure --fast --with-ffmpeg && make) >>$log 2>&1 |
95 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
96 | -ok_msg "test ${item} success" | 95 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
96 | +ok_msg "test \" ${item} \" success" | ||
97 | 97 | ||
98 | -item="preset --fast --with-transcode" | ||
99 | -ok_msg "test ${item}" | 98 | +item="./configure --fast --with-transcode" |
99 | +ok_msg "test \" ${item} \"" | ||
100 | (./configure --fast --with-transcode && make) >>$log 2>&1 | 100 | (./configure --fast --with-transcode && make) >>$log 2>&1 |
101 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
102 | -ok_msg "test ${item} success" | 101 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
102 | +ok_msg "test \" ${item} \" success" | ||
103 | 103 | ||
104 | -item="preset --fast --with-ingest" | ||
105 | -ok_msg "test ${item}" | 104 | +item="./configure --fast --with-ingest" |
105 | +ok_msg "test \" ${item} \"" | ||
106 | (./configure --fast --with-ingest && make) >>$log 2>&1 | 106 | (./configure --fast --with-ingest && make) >>$log 2>&1 |
107 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
108 | -ok_msg "test ${item} success" | 107 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
108 | +ok_msg "test \" ${item} \" success" | ||
109 | 109 | ||
110 | -item="preset --fast --with-librtmp" | ||
111 | -ok_msg "test ${item}" | 110 | +item="./configure --fast --with-librtmp" |
111 | +ok_msg "test \" ${item} \"" | ||
112 | (./configure --fast --with-librtmp && make) >>$log 2>&1 | 112 | (./configure --fast --with-librtmp && make) >>$log 2>&1 |
113 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
114 | -ok_msg "test ${item} success" | 113 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
114 | +ok_msg "test \" ${item} \" success" | ||
115 | 115 | ||
116 | -item="preset --fast --with-bwtc" | ||
117 | -ok_msg "test ${item}" | 116 | +item="./configure --fast --with-bwtc" |
117 | +ok_msg "test \" ${item} \"" | ||
118 | (./configure --fast --with-bwtc && make) >>$log 2>&1 | 118 | (./configure --fast --with-bwtc && make) >>$log 2>&1 |
119 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
120 | -ok_msg "test ${item} success" | 119 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
120 | +ok_msg "test \" ${item} \" success" | ||
121 | 121 | ||
122 | -item="preset --fast --with-research" | ||
123 | -ok_msg "test ${item}" | 122 | +item="./configure --fast --with-research" |
123 | +ok_msg "test \" ${item} \"" | ||
124 | (./configure --fast --with-research && make) >>$log 2>&1 | 124 | (./configure --fast --with-research && make) >>$log 2>&1 |
125 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
126 | -ok_msg "test ${item} success" | 125 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
126 | +ok_msg "test \" ${item} \" success" | ||
127 | 127 | ||
128 | -item="preset --fast --with-utest" | ||
129 | -ok_msg "test ${item}" | 128 | +item="./configure --fast --with-utest" |
129 | +ok_msg "test \" ${item} \"" | ||
130 | (./configure --fast --with-utest && make) >>$log 2>&1 | 130 | (./configure --fast --with-utest && make) >>$log 2>&1 |
131 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
132 | -ok_msg "test ${item} success" | 131 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
132 | +ok_msg "test \" ${item} \" success" | ||
133 | 133 | ||
134 | -item="preset --fast --with-gperf" | ||
135 | -ok_msg "test ${item}" | 134 | +item="./configure --fast --with-ssl --with-utest" |
135 | +ok_msg "test \" ${item} \"" | ||
136 | +(./configure --fast --with-ssl --with-utest && make) >>$log 2>&1 | ||
137 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi | ||
138 | +ok_msg "test \" ${item} \" success" | ||
139 | + | ||
140 | +item="./configure --fast --with-gperf" | ||
141 | +ok_msg "test \" ${item} \"" | ||
136 | (./configure --fast --with-gperf && make) >>$log 2>&1 | 142 | (./configure --fast --with-gperf && make) >>$log 2>&1 |
137 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
138 | -ok_msg "test ${item} success" | 143 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
144 | +ok_msg "test \" ${item} \" success" | ||
139 | 145 | ||
140 | -item="preset --fast --with-gperf --with-gmc" | ||
141 | -ok_msg "test ${item}" | 146 | +item="./configure --fast --with-gperf --with-gmc" |
147 | +ok_msg "test \" ${item} \"" | ||
142 | (./configure --fast --with-gperf --with-gmc && make) >>$log 2>&1 | 148 | (./configure --fast --with-gperf --with-gmc && make) >>$log 2>&1 |
143 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
144 | -ok_msg "test ${item} success" | 149 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
150 | +ok_msg "test \" ${item} \" success" | ||
145 | 151 | ||
146 | -item="preset --fast --with-gperf --with-gmp" | ||
147 | -ok_msg "test ${item}" | 152 | +item="./configure --fast --with-gperf --with-gmp" |
153 | +ok_msg "test \" ${item} \"" | ||
148 | (./configure --fast --with-gperf --with-gmp && make) >>$log 2>&1 | 154 | (./configure --fast --with-gperf --with-gmp && make) >>$log 2>&1 |
149 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
150 | -ok_msg "test ${item} success" | 155 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
156 | +ok_msg "test \" ${item} \" success" | ||
151 | 157 | ||
152 | -item="preset --fast --with-gperf --with-gcp" | ||
153 | -ok_msg "test ${item}" | 158 | +item="./configure --fast --with-gperf --with-gcp" |
159 | +ok_msg "test \" ${item} \"" | ||
154 | (./configure --fast --with-gperf --with-gcp && make) >>$log 2>&1 | 160 | (./configure --fast --with-gperf --with-gcp && make) >>$log 2>&1 |
155 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
156 | -ok_msg "test ${item} success" | 161 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
162 | +ok_msg "test \" ${item} \" success" | ||
157 | 163 | ||
158 | -item="preset --fast --with-gprof" | ||
159 | -ok_msg "test ${item}" | 164 | +item="./configure --fast --with-gprof" |
165 | +ok_msg "test \" ${item} \"" | ||
160 | (./configure --fast --with-gprof && make) >>$log 2>&1 | 166 | (./configure --fast --with-gprof && make) >>$log 2>&1 |
161 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
162 | -ok_msg "test ${item} success" | 167 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
168 | +ok_msg "test \" ${item} \" success" | ||
163 | 169 | ||
164 | ####################################################################################################### | 170 | ####################################################################################################### |
165 | ####################################################################################################### | 171 | ####################################################################################################### |
166 | ####################################################################################################### | 172 | ####################################################################################################### |
167 | -item="preset --dev" | ||
168 | -ok_msg "test ${item}" | 173 | +item="./configure --dev" |
174 | +ok_msg "test \" ${item} \"" | ||
169 | (./configure --dev && make) >>$log 2>&1 | 175 | (./configure --dev && make) >>$log 2>&1 |
170 | -ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test ${item} failed. ret=$ret"; exit $ret; fi | ||
171 | -ok_msg "test ${item} success" | 176 | +ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "test \" ${item} \" failed. ret=$ret"; exit $ret; fi |
177 | +ok_msg "test \" ${item} \" success" | ||
178 | + | ||
179 | +echo "success" |
-
请 注册 或 登录 后发表评论