run_test_example.sh 547 字节
Newer Older
J
jingqinghe 已提交
1 2
#!/bin/bash

J
update  
jingqinghe 已提交
3 4 5
# set redis server ip and port for test
export TEST_REDIS_IP="test_redis_server_ip"
export TEST_REDIS_PORT="test_redis_port"
J
jingqinghe 已提交
6

J
update  
jingqinghe 已提交
7
# unittest command
J
jingqinghe 已提交
8 9
PYTHON_TEST="python -m unittest"

J
update  
jingqinghe 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# add the modules to test
TEST_MODULES=("test_datautils_aby3"
"test_model_encryption"
"test_datautils_align"
"test_op_add"
"test_op_sub"
"test_op_mul"
"test_op_square"
"test_op_sum"
"test_op_mean"
"test_op_square_error_cost"
"test_op_fc"
"test_op_relu"
"test_op_compare"
)
J
jingqinghe 已提交
25

J
update  
jingqinghe 已提交
26 27
# run unittest
for MODULE in ${TEST_MODULES[@]}
J
jingqinghe 已提交
28 29 30
do
    $PYTHON_TEST $MODULE
done