k8s.io/registry.k8s.io@v0.3.1/hack/make-rules/e2e-test-local.sh (about) 1 #!/bin/bash 2 # Copyright 2023 The Kubernetes Authors. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 set -o errexit -o nounset -o pipefail 17 18 REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)" 19 cd "${REPO_ROOT}" 20 21 # normally the e2e tests would run against the staging endpoint 22 # this runs them against a local instance so we can test the e2e tests themselves 23 # and merge them even if staging is currently broken 24 set -x; 25 make archeio 26 bin/archeio &>"${ARTIFACTS:-./bin}"/archeio-log.txt & 27 trap 'kill $(jobs -p)' EXIT 28 make e2e-test "REGISTRY_ENDPOINT=localhost:8080"