From 36c2c37b424d7e8d550fd94c77582b1720755a53 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 16 Apr 2014 15:22:12 +0800 Subject: [PATCH] add srs.test for configure test and utest. --- trunk/auto/depends.sh | 5 +++++ trunk/configure | 1 + trunk/scripts/test_configure.sh | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 7bb51c329..7d578ba3a 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -663,3 +663,8 @@ echo "\"" >> $SRS_AUTO_HEADERS_H # new empty line to auto headers file. echo "" >> $SRS_AUTO_HEADERS_H + +##################################################################################### +# generated the test script +##################################################################################### +rm -rf ${SRS_OBJS}/srs.test && ln -sf `pwd`/scripts/srs.test objs/srs.test diff --git a/trunk/configure b/trunk/configure index a78462fe1..39fdf5722 100755 --- a/trunk/configure +++ b/trunk/configure @@ -632,3 +632,4 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server" fi echo "\" ./objs/srs -c conf/srs.conf \" to start the srs live server" +echo "\" ./objs/srs.test \" to test srs" diff --git a/trunk/scripts/test_configure.sh b/trunk/scripts/test_configure.sh index 1777243d6..e6704ae56 100755 --- a/trunk/scripts/test_configure.sh +++ b/trunk/scripts/test_configure.sh @@ -14,7 +14,7 @@ product_dir=$work_dir build_objs=${work_dir}/objs 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 item="default configure"