diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 989e48ead9864e717e573f7f0800a1afba2e934a..c0e4f41aed02516791e2a0ab2137eca8d524f8a3 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -171,6 +171,12 @@ function python_test_fit_a_line() { fi setproxy # recover proxy state kill_server_process + + # test grpc impl + check_cmd "python -m paddle_serving_server.serve --model uci_housing_model --port 9393 --thread 4 --use_multilang> /dev/null &" + sleep 5 # wait for the server to start + check_cmd "python test_multilang_client.py uci_housing_client/serving_client_conf.prototxt > /dev/null" + kill_server_process ;; GPU) export CUDA_VISIBLE_DEVICES=0 @@ -201,6 +207,12 @@ function python_test_fit_a_line() { fi setproxy # recover proxy state kill_server_process + + # test grpc impl + check_cmd "python -m paddle_serving_server_gpu.serve --model uci_housing_model --port 9393 --thread 4 --gpu_ids 0 --use_multilang> /dev/null &" + sleep 5 # wait for the server to start + check_cmd "python test_multilang_client.py uci_housing_client/serving_client_conf.prototxt > /dev/null" + kill_server_process ;; *) echo "error type"