Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to run a single e2e test #1999

Merged
merged 2 commits into from
Jan 22, 2022
Merged
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
13 changes: 13 additions & 0 deletions testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
E2E tests
---------

To run all e2e tests, use the command
```
$ ./e2e.sh
```

To run a single test, use the command
```
$ ./e2e.sh <test-name>
```

87 changes: 49 additions & 38 deletions testing/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -430,41 +430,52 @@ function test_new_container_pull_image_with_11_layers() {
docker stop -t 0 $cid
}

# Tests failing on GCB due to isssues with local registry
test_container_push
test_container_push_all
test_container_push_tag_file
test_container_push_with_auth
test_container_push_with_stamp
test_new_container_push_compat
test_new_container_push_oci
test_new_container_push_tar
test_new_container_push_with_stamp
test_new_container_push_oci_tag_file
test_new_container_push_oci_with_auth
test_new_container_push_legacy
test_new_container_push_legacy_tag_file
test_new_container_push_legacy_with_auth
test_new_container_push_skip_unchanged_digest_unchanged
test_new_container_push_skip_unchanged_digest_changed
test_container_pull_with_auth
test_container_pull_cache
test_new_container_pull_image_with_11_layers

# Tests failing on GCB due to permissions issue related to building tars
test_py_image_complex -c opt
test_py_image_complex -c dbg
test_py3_image_with_custom_run_flags -c opt
test_py3_image_with_custom_run_flags -c dbg
test_java_image -c opt
test_java_image -c dbg
test_war_image
test_war_image_with_custom_run_flags

# Test failing on GCB due to clang not finding ld.gold
test_rust_image -c opt
test_rust_image -c dbg

# Test failing on GCB due to not finding cc
test_d_image -c opt
test_d_image -c dbg
function run_all_tests() {
# Tests failing on GCB due to isssues with local registry
test_container_push
test_container_push_all
test_container_push_tag_file
test_container_push_with_auth
test_container_push_with_stamp
test_new_container_push_compat
test_new_container_push_oci
test_new_container_push_tar
test_new_container_push_with_stamp
test_new_container_push_oci_tag_file
test_new_container_push_oci_with_auth
test_new_container_push_legacy
test_new_container_push_legacy_tag_file
test_new_container_push_legacy_with_auth
test_new_container_push_skip_unchanged_digest_unchanged
test_new_container_push_skip_unchanged_digest_changed
test_container_pull_with_auth
test_container_pull_cache
test_new_container_pull_image_with_11_layers

# Tests failing on GCB due to permissions issue related to building tars
test_py_image_complex -c opt
test_py_image_complex -c dbg
test_py3_image_with_custom_run_flags -c opt
test_py3_image_with_custom_run_flags -c dbg
test_java_image -c opt
test_java_image -c dbg
test_war_image
test_war_image_with_custom_run_flags

# Test failing on GCB due to clang not finding ld.gold
test_rust_image -c opt
test_rust_image -c dbg

# Test failing on GCB due to not finding cc
test_d_image -c opt
test_d_image -c dbg
}

f="$@"
if [[ $(type -t "$f") == function ]]; then
# run a single test if provided
"$f"
else
# run all tests otherwise
run_all_tests
fi