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

Add first JUnit workspace black box test #7591

Closed
wants to merge 6 commits into from
Closed

Add first JUnit workspace black box test #7591

wants to merge 6 commits into from

Conversation

irengrig
Copy link
Contributor

  • introduce test repository generator class: generates a directory with:

    helper.bzl with the "write_to_file" Starlark rule definition:
    the rule prints [parametrized by generation] text to a file;

    and the BUILD file with a target of "write_to_file" rule,
    and the pkg_tar target, which packs everything in this directory into
    a tar archive;

    so one can use this directory as a source for local_repository or
    produced tar archive as a source for http_archive with file:/// URI,
    and call some platform independent target from the generated repository.

  • have a test for test repository generator class

  • move one test from workspace_test.sh into WorkspaceBlackBoxTest.java
    The test is platform independent, as it uses zero shell scripts.

To be continued, it is a part of verifying that bundled Starlark
repository rules are working on Windows without msys/mingw.

- introduce test repository generator class: generates a directory with:

  helper.bzl with the "write_to_file" Starlark rule definition:
  the rule prints [parametrized by generation] text to a file;

  and the BUILD file with a target of "write_to_file" rule,
  and the pkg_tar target, which packs everything in this directory into
  a tar archive;

  so one can use this directory as a source for local_repository or
  produced tar archive as a source for http_archive with file:/// URI,
  and call some platform independent target from the generated repository.

- have a test for test repository generator class

- move one test from workspace_test.sh into WorkspaceBlackBoxTest.java
The test is platform independent, as it uses zero shell scripts.

To be continued, it is a part of verifying that bundled Starlark
repository rules are working on Windows without msys/mingw.
@bazel-io bazel-io closed this in 32295e0 Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants