|
14 | 14 | # make force-printer-X Force-regenerate a single printer. |
15 | 15 | # make test Run tests for all languages. |
16 | 16 | # make test-X Run tests for one language (X = python, julia, go). |
| 17 | +# make update-bins Regenerate binary test files from .lqp sources. |
17 | 18 | # make update-snapshots Regenerate Python snapshot test outputs. |
18 | 19 | # make lint-python Run ruff lint and format checks. |
19 | 20 | # make format-python Auto-format Python code with ruff. |
@@ -79,7 +80,7 @@ JL_PROTO_GENERATED := \ |
79 | 80 | force-parsers force-parser-python force-parser-julia force-parser-go \ |
80 | 81 | printers printer-python printer-julia printer-go \ |
81 | 82 | force-printers force-printer-python force-printer-julia force-printer-go \ |
82 | | - test test-python update-snapshots test-julia test-go \ |
| 83 | + test test-python update-bins update-snapshots test-julia test-go \ |
83 | 84 | test-meta check-python check-meta lint-meta format-meta \ |
84 | 85 | lint-python format-python clean |
85 | 86 |
|
@@ -192,6 +193,12 @@ test: test-meta test-python test-julia test-go |
192 | 193 | test-python: $(PY_PARSER) $(PY_PROTO_GENERATED) check-python |
193 | 194 | cd sdks/python && uv run python -m pytest |
194 | 195 |
|
| 196 | +update-bins: $(PY_PARSER) $(PY_PROTO_GENERATED) |
| 197 | + @for lqp in tests/lqp/*.lqp; do \ |
| 198 | + name=$$(basename "$$lqp" .lqp); \ |
| 199 | + cd sdks/python && uv run lqp "../../$$lqp" --bin --out > "../../tests/bin/$${name}.bin" && cd ../..; \ |
| 200 | + done |
| 201 | + |
195 | 202 | update-snapshots: $(PY_PARSER) $(PY_PROTO_GENERATED) |
196 | 203 | cd sdks/python && uv run python -m pytest --snapshot-update |
197 | 204 |
|
|
0 commit comments