cppjieba/test/servertest/run_curl.sh
2014-09-15 22:21:37 +08:00

12 lines
212 B
Bash
Executable File

CURL_RES=../test/testdata/curl.res
TMP=curl.res.tmp
curl -s "http://127.0.0.1:11200/?key=南京市长江大桥" >> $TMP
if diff $TMP $CURL_RES >> /dev/null
then
echo "ok";
else
echo "failed."
fi
rm $TMP