Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,25 @@ extensions:
title: "run extended tests"
repository: "origin"
script: |-
for pth in ${OS_ROOT:-} "$(pwd)" "$(dirname ${BASH_SOURCE})" "/data/src/github.com/openshift/origin"; do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the test env you can be certain Origin is at /data/src/github.com/openshift/origin

if [[ -e "${pth}/hack/lib/init.sh" && -e "${pth}/test/extended/setup.sh" ]]; then
export OS_ROOT="${pth}"
break
fi
done

OS_BUILD_ENV_PULL_IMAGE=true OS_BUILD_ENV_PRESERVE=_output/local/bin/linux/amd64/extended.test hack/env make build-extended-test
OPENSHIFT_SKIP_BUILD='true' KUBECONFIG=/etc/origin/master/admin.kubeconfig TEST_ONLY=true JUNIT_REPORT='true' make test-extended SUITE=core FOCUS="\[Feature:Image|\[registry\]"

export OPENSHIFT_SKIP_BUILD=true
export KUBECONFIG=/etc/origin/master/admin.kubeconfig
export TEST_ONLY=true
export JUNIT_REPORT=true

source "${OS_ROOT}/hack/lib/init.sh"
source "${OS_ROOT}/test/extended/setup.sh"

export TEST_REPORT_FILE_NAME=registry_suite
export FOCUS="\[Feature:Image|\[registry\]"

os::log::info "Running registry extended tests serially"
os::test::extended::run -- -test.timeout 6h ${TEST_EXTENDED_ARGS:-}
9 changes: 7 additions & 2 deletions sjb/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ set -o errexit
set -o nounset
set -o pipefail

bin="python"
if which python2 >/dev/null 2>&1; then
bin="python2"
fi

pushd sjb >/dev/null
for spec in config/test_cases/*.yml; do
python -m generate "${spec}" "test"
"${bin}" -m generate "${spec}" "test"
done

for spec in config/test_suites/*.yml; do
python -m generate "${spec}" "suite"
"${bin}" -m generate "${spec}" "suite"
done
popd >/dev/null
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,28 @@ cat <<SCRIPT >"${script}"
#!/bin/bash
set -o errexit -o nounset -o pipefail -o xtrace
cd "\${GOPATH}/src/github.com/openshift/origin"
for pth in \${OS_ROOT:-} "\$(pwd)" "\$(dirname \${BASH_SOURCE})" "/data/src/github.com/openshift/origin"; do
if [[ -e "\${pth}/hack/lib/init.sh" && -e "\${pth}/test/extended/setup.sh" ]]; then
export OS_ROOT="\${pth}"
break
fi
done

OS_BUILD_ENV_PULL_IMAGE=true OS_BUILD_ENV_PRESERVE=_output/local/bin/linux/amd64/extended.test hack/env make build-extended-test
OPENSHIFT_SKIP_BUILD='true' KUBECONFIG=/etc/origin/master/admin.kubeconfig TEST_ONLY=true JUNIT_REPORT='true' make test-extended SUITE=core FOCUS="\[Feature:Image|\[registry\]"

export OPENSHIFT_SKIP_BUILD=true
export KUBECONFIG=/etc/origin/master/admin.kubeconfig
export TEST_ONLY=true
export JUNIT_REPORT=true

source "\${OS_ROOT}/hack/lib/init.sh"
source "\${OS_ROOT}/test/extended/setup.sh"

export TEST_REPORT_FILE_NAME=registry_suite
export FOCUS="\[Feature:Image|\[registry\]"

os::log::info "Running registry extended tests serially"
os::test::extended::run -- -test.timeout 6h \${TEST_EXTENDED_ARGS:-}
SCRIPT
chmod +x "${script}"
scp -F ./.config/origin-ci-tool/inventory/.ssh_config "${script}" openshiftdevel:"${script}"
Expand Down