1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add srs.test for configure test and utest.

This commit is contained in:
winlin 2014-04-16 15:22:12 +08:00
parent 7a66dd8186
commit 36c2c37b42
3 changed files with 7 additions and 1 deletions

View file

@ -663,3 +663,8 @@ echo "\"" >> $SRS_AUTO_HEADERS_H
# new empty line to auto headers file. # new empty line to auto headers file.
echo "" >> $SRS_AUTO_HEADERS_H echo "" >> $SRS_AUTO_HEADERS_H
#####################################################################################
# generated the test script
#####################################################################################
rm -rf ${SRS_OBJS}/srs.test && ln -sf `pwd`/scripts/srs.test objs/srs.test

1
trunk/configure vendored
View file

@ -632,3 +632,4 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then
echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server" echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server"
fi fi
echo "\" ./objs/srs -c conf/srs.conf \" to start the srs live server" echo "\" ./objs/srs -c conf/srs.conf \" to start the srs live server"
echo "\" ./objs/srs.test \" to test srs"

View file

@ -14,7 +14,7 @@ product_dir=$work_dir
build_objs=${work_dir}/objs build_objs=${work_dir}/objs
package_dir=${build_objs}/package package_dir=${build_objs}/package
log="${build_objs}/logs/package.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log log="${build_objs}/test.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log
ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
item="default configure" item="default configure"