Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
add kn installation to root e2e test script (#21)
Browse files Browse the repository at this point in the history
Ying Chun Guo authored Apr 21, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 79925ae commit 677ce85
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/hello/test/e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ source "$(dirname $0)"/../../../test-infra/scripts/e2e-tests.sh

echo "TEST_INFRA_SCRIPTS: $TEST_INFRA_SCRIPTS"
echo "Testing hello"
cd ${REPO_ROOT_DIR}

run() {

@@ -30,5 +31,4 @@ run() {
}

# Fire up
cd ${REPO_ROOT_DIR}
run $@
6 changes: 6 additions & 0 deletions test/common.sh
Original file line number Diff line number Diff line change
@@ -68,3 +68,9 @@ function knative_setup() {
start_release_knative_eventing "${eventing_version}"
fi
}

function cluster_setup() {
header "Installing client"
go get knative.dev/client
go install knative.dev/client/cmd/kn
}
4 changes: 3 additions & 1 deletion test/e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -22,7 +22,9 @@ run() {
plugins_test() {
# Iterate over all plugin directories and check whether they have testing
# enabled
echo "=== Running Plugins E2E tests ======================================="
echo "==== Building Plugins ============================"
loop_over_plugins "presubmit-tests.sh" "--build-tests"
echo "==== Running Plugins E2E tests ============================"
loop_over_plugins "e2e-tests.sh" ""
}

0 comments on commit 677ce85

Please sign in to comment.