Skip to content

Commit 0a6602d

Browse files
committed
Add update-bins target
1 parent fce8059 commit 0a6602d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# make force-printer-X Force-regenerate a single printer.
1414
# make test Run tests for all languages.
1515
# make test-X Run tests for one language (X = python, julia, go).
16+
# make update-bins Regenerate binary test files from .lqp sources.
1617
# make update-snapshots Regenerate Python snapshot test outputs.
1718
# make lint-python Run ruff lint and format checks.
1819
# make format-python Auto-format Python code with ruff.
@@ -78,7 +79,7 @@ JL_PROTO_GENERATED := \
7879
force-parsers force-parser-python force-parser-julia force-parser-go \
7980
printers printer-python printer-julia printer-go \
8081
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 \
8283
test-meta check-python check-meta lint-meta format-meta \
8384
lint-python format-python clean
8485

@@ -174,6 +175,12 @@ test: test-meta test-python test-julia test-go
174175
test-python: $(PY_PARSER) $(PY_PROTO_GENERATED) check-python
175176
cd sdks/python && uv run python -m pytest
176177

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+
177184
update-snapshots: $(PY_PARSER) $(PY_PROTO_GENERATED)
178185
cd sdks/python && uv run python -m pytest --snapshot-update
179186

0 commit comments

Comments
 (0)