diff --git a/lib/tests/assert_archive_contains/BUILD.bazel b/lib/tests/assert_archive_contains/BUILD.bazel new file mode 100644 index 0000000..630cfce --- /dev/null +++ b/lib/tests/assert_archive_contains/BUILD.bazel @@ -0,0 +1,14 @@ +load("//lib:testing.bzl", "assert_archive_contains") + +assert_archive_contains( + name = "check_zip", + archive = "bazel_runfiles.whl", + expected = "expected_wheel.txt", +) + +assert_archive_contains( + name = "check_tar", + archive = "lib_tests.tar", + expected = "expected_tar.txt", + type = "tar", +) diff --git a/lib/tests/assert_archive_contains/bazel_runfiles.whl b/lib/tests/assert_archive_contains/bazel_runfiles.whl new file mode 100755 index 0000000..a047250 Binary files /dev/null and b/lib/tests/assert_archive_contains/bazel_runfiles.whl differ diff --git a/lib/tests/assert_archive_contains/expected_tar.txt b/lib/tests/assert_archive_contains/expected_tar.txt new file mode 100644 index 0000000..9cdada0 --- /dev/null +++ b/lib/tests/assert_archive_contains/expected_tar.txt @@ -0,0 +1,3 @@ +lib/tests/assert_archive_contains/bazel_runfiles.whl +lib/tests/assert_archive_contains/expected_wheel.txt +lib/tests/assert_archive_contains/BUILD.bazel diff --git a/lib/tests/assert_archive_contains/expected_wheel.txt b/lib/tests/assert_archive_contains/expected_wheel.txt new file mode 100644 index 0000000..5329d35 --- /dev/null +++ b/lib/tests/assert_archive_contains/expected_wheel.txt @@ -0,0 +1,5 @@ +runfiles/__init__.py +runfiles/runfiles.py +bazel_runfiles-1.0.2.dist-info/WHEEL +bazel_runfiles-1.0.2.dist-info/METADATA +bazel_runfiles-1.0.2.dist-info/RECORD diff --git a/lib/tests/assert_archive_contains/lib_tests.tar b/lib/tests/assert_archive_contains/lib_tests.tar new file mode 100644 index 0000000..e318cfe Binary files /dev/null and b/lib/tests/assert_archive_contains/lib_tests.tar differ