Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-05-27 07:30:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02c4741d644da590dd3217d84a06ca85e0f6247f
02c4741d
1 parent
c1b9541b
add usage and make jobs support for configure test script
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
51 行增加
和
42 行删除
trunk/scripts/srs.test
trunk/scripts/test_configure.sh
trunk/scripts/srs.test
查看文件 @
02c4741
#!/bin/bash
bash scripts/test_configure.sh
&&
./objs/srs_utest
echo "Usage: $0 [-jN]"
echo " -jN The make jobs, for example, -j8 to use 8cpu to make"
params="$@"
echo "params is: $params"
bash scripts/test_configure.sh $params
&&
./objs/srs_utest
ret=$?; if [[ 0 -ne $ret ]]; then echo "configure test and utest failed."; exit $ret; fi
echo "configure test and utest success";
...
...
trunk/scripts/test_configure.sh
查看文件 @
02c4741
#!/bin/bash
params
=
"
$@
"
echo
"params is:
$params
"
# discover the current work dir, the log and access.
echo
"argv[0]=
$0
"
if
[[
! -f
$0
]]
;
then
...
...
@@ -19,181 +22,181 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
item
=
"./configure"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --x86-x64"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --pure-rtmp"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --rtmp-hls"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-ssl"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-hls"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-dvr"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-nginx"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-http-callback"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-http-server"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-http-api"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-ffmpeg"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-transcode"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-ingest"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-librtmp"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-research"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast--with-stream-caster"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-utest"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-ssl --with-utest"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-gperf"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-gperf --with-gmc"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-gperf --with-gmp"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-gperf --with-gcp"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --with-gprof"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --log-verbose"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --log-info"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --log-trace"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast --log-info --log-verbose --log-trace"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
...
...
@@ -202,25 +205,25 @@ ok_msg "test \" ${item} \" success"
#######################################################################################################
item
=
"./configure --dev"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --fast-dev"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --demo"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --full"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
...
...
@@ -229,43 +232,43 @@ ok_msg "test \" ${item} \" success"
#######################################################################################################
item
=
"./configure --disable-all --with-ssl"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-hls --with-ssl --with-http-server --with-http-api"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-ssl --with-hls --with-nginx"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-ssl --with-ffmpeg --with-transcode"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-ssl --with-ffmpeg --with-ingest"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
item
=
"./configure --disable-all --with-hls --with-ssl --with-http-server"
ok_msg
"test
\"
${
item
}
\"
"
(
$item
&&
make
)
>>
$log
2>&1
(
$item
&&
make
$params
)
>>
$log
2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"test
\"
${
item
}
\"
failed. ret=
$ret
"
;
exit
$ret
;
fi
ok_msg
"test
\"
${
item
}
\"
success"
...
...
请
注册
或
登录
后发表评论