From aa6b1e6a104113c4bc0f28713a5ec762c58d07b2 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Thu, 8 Sep 2016 14:53:01 -0700 Subject: [PATCH] functional-tester: add Procfile --- tools/functional-tester/Procfile | 4 ++++ tools/functional-tester/README.md | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tools/functional-tester/Procfile diff --git a/tools/functional-tester/Procfile b/tools/functional-tester/Procfile new file mode 100644 index 000000000..c7c2ecb1c --- /dev/null +++ b/tools/functional-tester/Procfile @@ -0,0 +1,4 @@ +agent-1: mkdir -p agent-1 && cd agent-1 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:9027 -use-root=false +agent-2: mkdir -p agent-2 && cd agent-2 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:9028 -use-root=false +agent-3: mkdir -p agent-3 && cd agent-3 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:9029 -use-root=false +stresser: sleep 1s && bin/etcd-tester -agent-endpoints "localhost:9027,localhost:9028,localhost:9029" -client-ports 12379,22379,32379 -peer-ports 12380,22380,32380 diff --git a/tools/functional-tester/README.md b/tools/functional-tester/README.md index 4831f8d06..53a06595f 100644 --- a/tools/functional-tester/README.md +++ b/tools/functional-tester/README.md @@ -35,3 +35,17 @@ Notes: - Docker image is based on Alpine Linux OS running in privileged mode to allow iptables manipulation. - To specify testing parameters (etcd-tester arguments) modify tools/functional-tester/docker/docker-compose.yml or start etcd-tester manually - (OSX) make sure that etcd binary is built for linux/amd64 (eg. `rm bin/etcd;GOOS=linux GOARCH=amd64 ./tools/functional-tester/test`) otherwise you get `exec format error` + + +## with Goreman + +To run the functional tests on a single machine using Goreman, build with the provided build script and run with the provided Procfile: + +```sh +./tools/functional-tester/build +goreman -f tools/functional-tester/Procfile +``` + +Notes: +- The etcd-agent will not run with root privileges; iptables manipulation is disabled. +- To specify testing parameters (etcd-tester arguments) modify tools/functional-tester/Procfile or start etcd-tester manually