-
Notifications
You must be signed in to change notification settings - Fork 188
/
utest_make.sh
29 lines (25 loc) · 1.38 KB
/
utest_make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
OLD_PWD="$( pwd )"
BOOST_LIB_PATH=/usr/local/lib
export BOOST_LIB_PATH
BOOST_INC_PATH=/usr/local/include
export BOOST_INC_PATH
`rm server_lib/asio_kcp_server.a 2>/dev/null;\
rm asio_kcp_utest/asio_kcp_utest 2>/dev/null;\
rm asio_kcp_client_utest/asio_kcp_client_utest 2>/dev/null;\
`
echo "" && echo "" && echo "[-------------------------------]" && echo " essential" && echo "[-------------------------------]" && \
cd ./essential/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " asio_kcp" && echo "[-------------------------------]" && \
cd ../server_lib/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " client_lib" && echo "[-------------------------------]" && \
cd ../client_lib/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " asio_kcp_utest" && echo "[-------------------------------]" && \
cd ../asio_kcp_utest/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " kcp_client_utest" && echo "[-------------------------------]" && \
cd ../asio_kcp_client_utest/ && make && \
echo "" && \
../asio_kcp_utest/asio_kcp_utest && \
echo "" && echo "" && echo "" && echo "----------------------------" && echo "client test" && echo "------" && echo "" && \
./asio_kcp_client_utest
# restore old path.
cd $OLD_PWD