You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,11 @@ Currently only one option is supported: `no_debug_suffix`. Normally debug libra
35
35
36
36
The check.py script requires the `pyelftools` and `pefile` dependencies be installed; use `pip3 install` to install these.
37
37
38
+
## Bazel Testing
39
+
Pyunit tests are automatically auto generated run using the checker tool against all of the vendordep json files in the repository by bazel.
40
+
41
+
### Prerequisites
42
+
- Install [Bazelisk](https://github.com/bazelbuild/bazelisk/releases) and add it to your path. Bazelisk is a wrapper that will download the correct version of bazel specified in the repository. Note: You can alias/rename the binary to `bazel` if you want to keep the familiar `bazel build` vs `bazelisk build` syntax.
43
+
44
+
### Running the tests
45
+
To run the tests, simply run `bazel test //...`. Alternatively, you can run the `checker.py` tool in a standalone mode by running `bazel run //:checker -- <command line arguments from above>`
"""Parse command line arguments. Returns list of filenames."""
69
71
parser=argparse.ArgumentParser(description='Checks a vendor json file')
70
72
parser.add_argument('--verbose', '-v', action='count', help='increase the verbosity of output')
71
73
parser.add_argument('--local-maven', help='directory to use for artifacts instead of fetching from mavenUrls')
72
74
parser.add_argument('--year', '-y', help='FRC competition season year (used to set known libraries)')
75
+
parser.add_argument('--cache_directory', type=pathlib.Path, help='Optional. If present will set up a download cache in this directory to prevent re-downloading artifacts. Should be used for debugging purposes only.')
73
76
parser.add_argument('file', nargs='+', help='json file to parse')
0 commit comments