* Support multiple transforms in patterns * New examples in docs * Refactor: move large block into its own function
28 lines
1.2 KiB
Makefile
28 lines
1.2 KiB
Makefile
cnr := "cargo nextest run"
|
|
cita := "cargo insta test --accept"
|
|
|
|
# Run the same lint checks we run in CI.
|
|
lint:
|
|
cargo clippy --workspace --all-targets -- -D warnings
|
|
|
|
# Run the stdlib docs generation
|
|
redo-kcl-stdlib-docs-no-imgs:
|
|
EXPECTORATE=overwrite {{cnr}} -p kcl-lib docs::gen_std_tests::test_generate_stdlib
|
|
|
|
# Generate the stdlib image artifacts
|
|
# Then run the stdlib docs generation
|
|
redo-kcl-stdlib-docs:
|
|
TWENTY_TWENTY=overwrite {{cnr}} -p kcl-lib kcl_test_example
|
|
EXPECTORATE=overwrite {{cnr}} -p kcl-lib docs::gen_std_tests::test_generate_stdlib
|
|
|
|
# Create a new KCL deterministic simulation test case.
|
|
new-sim-test test_name render_to_png="true":
|
|
# Add the various tests for this new test case.
|
|
cat kcl/tests/simtest.tmpl | sed "s/TEST_NAME_HERE/{{test_name}}/" | sed "s/RENDER_TO_PNG/{{render_to_png}}/" >> kcl/src/simulation_tests.rs
|
|
# Run all the tests for the first time, in the right order.
|
|
{{cita}} -p kcl-lib -- tests::{{test_name}}::tokenize
|
|
{{cita}} -p kcl-lib -- tests::{{test_name}}::parse
|
|
{{cita}} -p kcl-lib -- tests::{{test_name}}::unparse
|
|
TWENTY_TWENTY=overwrite {{cita}} -p kcl-lib -- tests::{{test_name}}::kcl_test_execute
|
|
|