|
13 | 13 | # make force-printer-X Force-regenerate a single printer. |
14 | 14 | # make test Run tests for all languages. |
15 | 15 | # make test-X Run tests for one language (X = python, julia, go). |
| 16 | +# make update-bins Regenerate binary test files from .lqp sources. |
16 | 17 | # make update-snapshots Regenerate Python snapshot test outputs. |
17 | 18 | # make lint-python Run ruff lint and format checks. |
18 | 19 | # make format-python Auto-format Python code with ruff. |
@@ -78,7 +79,7 @@ JL_PROTO_GENERATED := \ |
78 | 79 | force-parsers force-parser-python force-parser-julia force-parser-go \ |
79 | 80 | printers printer-python printer-julia printer-go \ |
80 | 81 | force-printers force-printer-python force-printer-julia force-printer-go \ |
81 | | - test test-python update-snapshots test-julia test-go \ |
| 82 | + test test-python update-bins update-snapshots test-julia test-go \ |
82 | 83 | test-meta check-python check-meta lint-meta format-meta \ |
83 | 84 | lint-python format-python clean |
84 | 85 |
|
@@ -174,6 +175,12 @@ test: test-meta test-python test-julia test-go |
174 | 175 | test-python: $(PY_PARSER) $(PY_PROTO_GENERATED) check-python |
175 | 176 | cd sdks/python && uv run python -m pytest |
176 | 177 |
|
| 178 | +update-bins: $(PY_PARSER) $(PY_PROTO_GENERATED) |
| 179 | + @for lqp in tests/lqp/*.lqp; do \ |
| 180 | + name=$$(basename "$$lqp" .lqp); \ |
| 181 | + cd sdks/python && uv run lqp "../../$$lqp" --bin --out > "../../tests/bin/$${name}.bin" && cd ../..; \ |
| 182 | + done |
| 183 | + |
177 | 184 | update-snapshots: $(PY_PARSER) $(PY_PROTO_GENERATED) |
178 | 185 | cd sdks/python && uv run python -m pytest --snapshot-update |
179 | 186 |
|
|
0 commit comments