-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BDD Suite: Add scripts and documentation
- Loading branch information
Alejandro Rosero
committed
Feb 4, 2019
1 parent
59e269c
commit b4a3f96
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /usr/bin/sh | ||
# Example: ./hack/run-bdd-suite.sh tests/bdd-smoke/suites/config/libvirt | ||
|
||
if [ "$IS_CONTAINER" != "" ]; then | ||
mkdir ~/.ssh | ||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCc4amSo5Z59mH4bUgZ4M8A1sURg+qUKkYjZ9+0fft5/OmSbe34Ge9gUrJ8UKNpmbC+W26v9qKX21NCYct1QOgIlVqyIjZUll0NfcJXToAd1o2GrItMlpQEpXfQGNOjZtWu1uyO187qbGMwnq8e8EH9R1IJZwTI6sOVnc8sSyzydQ==" > ~/.ssh/id_rsa.pub | ||
|
||
TAGS=libvirt ./hack/build.sh | ||
GOPATH_ORI=$GOPATH | ||
export GOPATH=$GOPATH:/go/src/github.com/openshift/installer/tests/bdd-smoke/vendor | ||
go build -o "bin/ginkgo" github.com/onsi/ginkgo/ginkgo | ||
export GOPATH=$GOPATH_ORI | ||
./bin/ginkgo "${@}" | ||
else | ||
podman run --rm \ | ||
--env IS_CONTAINER=TRUE \ | ||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \ | ||
--workdir /go/src/github.com/openshift/installer \ | ||
docker.io/openshift/origin-release:golang-1.10 \ | ||
./hack/run-bdd-suite.sh "${@}" | ||
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BDD Tests | ||
======== | ||
|
||
Required | ||
-------- | ||
* podman | ||
|
||
Test Suites | ||
-------- | ||
*Configuration Tests* | ||
|
||
Run the configuration level tests for libvirt (no cluster runnning required): | ||
``` | ||
./hack/run-bdd-suite.sh tests/bdd-smoke/suites/config/libvirt | ||
``` |