mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: run test script with new "functional-tester"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
d44332daa9
commit
28766fb002
18
test
18
test
@ -180,11 +180,10 @@ function integration_extra {
|
|||||||
|
|
||||||
function functional_pass {
|
function functional_pass {
|
||||||
# Clean up any data and logs from previous runs
|
# Clean up any data and logs from previous runs
|
||||||
rm -rf ./agent-*
|
rm -rf /tmp/etcd-agent-data-*
|
||||||
|
|
||||||
for a in 1 2 3; do
|
for a in 1 2 3; do
|
||||||
mkdir -p ./agent-$a
|
./bin/etcd-agent --network tcp --address 127.0.0.1:${a}9027 &
|
||||||
./bin/etcd-agent -etcd-path ./bin/etcd -etcd-log-dir "./agent-$a" -port ":${a}9027" &
|
|
||||||
pid="$!"
|
pid="$!"
|
||||||
agent_pids="${agent_pids} $pid"
|
agent_pids="${agent_pids} $pid"
|
||||||
done
|
done
|
||||||
@ -197,18 +196,7 @@ function functional_pass {
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Starting 'etcd-tester'"
|
echo "Starting 'etcd-tester'"
|
||||||
./bin/etcd-tester \
|
./bin/etcd-tester --config ./tools/functional-tester/tester/local-test.yaml && echo "'etcd-tester' succeeded"
|
||||||
-agent-endpoints "127.0.0.1:19027,127.0.0.1:29027,127.0.0.1:39027" \
|
|
||||||
-client-ports 1379,2379,3379 \
|
|
||||||
-advertise-client-ports 13790,23790,33790 \
|
|
||||||
-peer-ports 1380,2380,3380 \
|
|
||||||
-advertise-peer-ports 13800,23800,33800 \
|
|
||||||
-limit 1 \
|
|
||||||
-schedule-cases "0 1 2 3 4 5 6 7 8 9" \
|
|
||||||
-stress-qps 1000 \
|
|
||||||
-stress-key-txn-count 100 \
|
|
||||||
-stress-key-txn-ops 10 \
|
|
||||||
-exit-on-failure && echo "'etcd-tester' succeeded"
|
|
||||||
ETCD_TESTER_EXIT_CODE=$?
|
ETCD_TESTER_EXIT_CODE=$?
|
||||||
echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}
|
echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user