Commit 8991b218 authored by mdj33's avatar mdj33 Committed by vipwzw

fix rpc test

parent 64892e5d
...@@ -5,16 +5,18 @@ RPC_TESTFILE=test-rpc.sh ...@@ -5,16 +5,18 @@ RPC_TESTFILE=test-rpc.sh
function dapp_test_rpc() { function dapp_test_rpc() {
local ip=$1 local ip=$1
echo "============ # dapp rpc test =============" echo "============ # dapp rpc test begin ============="
if [ -d dapptest ]; then if [ -d dapptest ]; then
cd dapptest || return cd dapptest || return
dir=$(find . -maxdepth 1 -type d ! -name dapptest ! -name . | sed 's/^\.\///') dir=$(find . -maxdepth 1 -type d ! -name dapptest ! -name . | sed 's/^\.\///')
for app in $dir; do for app in $dir; do
echo "=========== # $app rpc test =============" echo "=========== # $app rpc test ============="
./"$app/${RPC_TESTFILE}" "$ip" ./"$app/${RPC_TESTFILE}" "$ip"
echo "=========== # $app rpc end ============="
done done
fi fi
echo "============ # dapp rpc test end ============="
} }
#dapp_test_rpc $1 #dapp_test_rpc $1
...@@ -232,13 +232,9 @@ function run_testcases() { ...@@ -232,13 +232,9 @@ function run_testcases() {
} }
function main() { function main() {
local ip=$1 MAIN_HTTP="$1"
MAIN_HTTP="http://$ip:8801" echo "main_ip=$MAIN_HTTP"
PARA_HTTP="http://$ip:8901"
echo "=========== # paracross rpc test ============="
echo "main_ip=$MAIN_HTTP,para_ip=$PARA_HTTP"
UNIT_HTTP=$MAIN_HTTP
run_testcases run_testcases
if [ -n "$CASE_ERR" ]; then if [ -n "$CASE_ERR" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment