github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/run_all.sh (about)

     1  #!/usr/bin/env bash
     2  # raft 관련 모든 test를 실행한다.
     3  # required tool : jq
     4  source set_test_env.sh
     5  source test_common.sh
     6  
     7  echo "kill_svr & clean all test data"
     8  clean_test.sh
     9  init_test.sh 
    10  
    11  # raft server boot & down test
    12  echo "pushd $TEST_RAFT_INSTANCE"
    13  pushd $TEST_RAFT_INSTANCE
    14  
    15  clean.sh all #remove log
    16  rm BP*
    17  
    18  export TEST_SKIP_GENESIS=0
    19  make_node.sh
    20  export TEST_SKIP_GENESIS=1
    21  RUN_TEST_SCRIPT test_tx.sh 100
    22  RUN_TEST_SCRIPT test_up_down.sh
    23  RUN_TEST_SCRIPT test_leader_change.sh 10
    24  RUN_TEST_SCRIPT test_slow_follower.sh
    25  RUN_TEST_SCRIPT test_slow_leader.sh
    26  RUN_TEST_SCRIPT test_slow_follower_restart.sh
    27  RUN_TEST_SCRIPT test_syncer_crash.sh 0
    28  RUN_TEST_SCRIPT test_syncer_crash.sh 1
    29  RUN_TEST_SCRIPT test_member.sh
    30  RUN_TEST_SCRIPT test_new_backup.sh
    31  RUN_TEST_SCRIPT test_join_syncer_crash.sh 1
    32  RUN_TEST_SCRIPT test_join_backup.sh
    33  RUN_TEST_SCRIPT test_invalid_member_init.sh
    34  RUN_TEST_SCRIPT test_invalid_member_add.sh
    35  RUN_TEST_SCRIPT test_join_best_entry.sh
    36  popd