Skip to content

Commit 5a5e96c

Browse files
committed
Merge branch 'kaiwenGuo-typecheck' of https://github.com/kg3354/p4-constraints into kaiwenGuo-typecheck
2 parents 17d9c2d + 56253a6 commit 5a5e96c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ bazel test //... # Run tests in container.
181181

182182
The easiest way to experiment with p4-constraints is to write a
183183
[golden test](https://ro-che.info/articles/2017-12-04-golden-tests).
184-
We provide [Bazel rules](e2e_test/p4check.bzl) `run_p4check` and `diff_test` to
184+
We provide [Bazel rules](e2e_tests/p4check.bzl) `run_p4check` and `diff_test` to
185185
make this convenient.
186-
See the [e2e_test/](e2e_test/) folder -- in particular
187-
[e2e_test/BUILD.bazel](e2e_test/BUILD.bazel) -- for examples of how to use them.
186+
See the [e2e_tests/](e2e_tests/) folder -- in particular
187+
[e2e_tests/BUILD.bazel](e2e_tests/BUILD.bazel) -- for examples of how to use them.
188188

189189
To run all golden tests, execute
190190
```sh
191-
bazel test //e2e_test/...
191+
bazel test //e2e_tests/...
192192
```
193193
[Recall](#building) that this will build p4c and requires
194194
[Bison](https://en.wikipedia.org/wiki/GNU_Bison) and
@@ -204,7 +204,7 @@ bazel run //e2e_test:invalid_constraints_test
204204

205205
The `p4check` CLI allows invoking the p4-constraints library from the command
206206
line. The most convenient way to run `p4check` is using the
207-
[`run_p4check`-rule](e2e_test/p4check.bzl), as is done for
207+
[`run_p4check`-rule](e2e_tests/p4check.bzl), as is done for
208208
[golden testing](#golden-tests).
209209

210210
To learn how to invoke [p4check](p4_constraints/cli/p4check.cc) manually,
@@ -217,7 +217,7 @@ bazel run p4_constraints/cli:p4check -- --help
217217

218218
See [docs/language-specification.md](docs/language-specification.md) for a
219219
documentation of the constraint languages, or look at some example constraints
220-
in the .p4-files in the [e2e_test folder](e2e_test/).
220+
in the .p4-files in the [e2e_tests folder](e2e_tests/).
221221

222222
## Contributing
223223

format.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ find . -not -path "./third_party/**" \
2525
| egrep "\.(${CLANG_FORMAT_EXTENSIONS})\$" \
2626
| xargs clang-format --verbose -style=google -i
2727

28-
bazel run -- @buildifier_prebuilt//:buildifier --lint=fix -r .
28+
bazel run -- \
29+
@buildifier_prebuilt//:buildifier --lint=fix -r $(bazel info workspace)

0 commit comments

Comments
 (0)