Skip to content

Commit

Permalink
Merge pull request kubevirt#34 from admiyo/testrun
Browse files Browse the repository at this point in the history
Script to run functional tests from kubevirt directory
  • Loading branch information
rmohr authored Jan 11, 2017
2 parents 0adac30 + 2da6d42 commit 008186c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cluster/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source hack/config.sh

pushd tests
go test -master=http://$master_ip:$master_port
popd
1 change: 1 addition & 0 deletions hack/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ docker_prefix=kubevirt
docker_tag=${DOCKER_TAG:-latest}
manifest_templates="`ls manifests/*.in`"
master_ip=192.168.200.2
master_port=8184
network_provider=weave
10 changes: 9 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ point the tests to the cluster.
== Run them on Vagrant ==

The vagrant environment has an unprotected haproxy in front of the apiserver,
so only `-master` needs to be set to run the tests.
so only `-master` needs to be set to run the tests.

```
cd tests # from the git repo root folder
go test -master=http://192.168.200.2:8184
```

There is a helper script to run this:


```
# from the git repo root folder
cluster/run_tests.sh
```

0 comments on commit 008186c

Please sign in to comment.