mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
fix(clerk): add the Catala command to the build output name
This commit is contained in:
parent
760930942c
commit
5417a64556
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@ legifrance_oauth*
|
||||
*.html
|
||||
.vscode/
|
||||
.ninja_*
|
||||
|
||||
build.ninja
|
281
build.ninja
281
build.ninja
@ -1,281 +0,0 @@
|
||||
rule test_scope
|
||||
command = catala -s $scope Interpret $tested_file --unstyle | colordiff -u -b $expected_output -
|
||||
description = Testing scope $scope of file $tested_file
|
||||
|
||||
build test: phony test_dir_examples-
|
||||
|
||||
build test_Test10_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test10
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test10.Interpret
|
||||
|
||||
build test_Test11_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test11
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test11.Interpret
|
||||
|
||||
build test_Test12_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test12
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test12.Interpret
|
||||
|
||||
build test_Test13_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test13
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test13.Interpret
|
||||
|
||||
build test_Test1_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test1
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test1.Interpret
|
||||
|
||||
build test_Test1_examples-allocations_familiales-tests-tests_ouverture_droits.catala_fr: test_scope
|
||||
scope = Test1
|
||||
tested_file = examples/allocations_familiales/tests/tests_ouverture_droits.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_ouverture_droits.catala_fr.Test1.Interpret
|
||||
|
||||
build test_Test1_examples-droit_successions-tests-tests_droit_succession.catala_fr: test_scope
|
||||
scope = Test1
|
||||
tested_file = examples/droit_successions/tests/tests_droit_succession.catala_fr
|
||||
expected_output = examples/droit_successions/tests/output/tests_droit_succession.catala_fr.Test1.Interpret
|
||||
|
||||
build test_Test1_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test1
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test1.Interpret
|
||||
|
||||
build test_Test2_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test2
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test2.Interpret
|
||||
|
||||
build test_Test2_examples-droit_successions-tests-tests_droit_succession.catala_fr: test_scope
|
||||
scope = Test2
|
||||
tested_file = examples/droit_successions/tests/tests_droit_succession.catala_fr
|
||||
expected_output = examples/droit_successions/tests/output/tests_droit_succession.catala_fr.Test2.Interpret
|
||||
|
||||
build test_Test2_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test2
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test2.Interpret
|
||||
|
||||
build test_Test3_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test3
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test3.Interpret
|
||||
|
||||
build test_Test3_examples-droit_successions-tests-tests_droit_succession.catala_fr: test_scope
|
||||
scope = Test3
|
||||
tested_file = examples/droit_successions/tests/tests_droit_succession.catala_fr
|
||||
expected_output = examples/droit_successions/tests/output/tests_droit_succession.catala_fr.Test3.Interpret
|
||||
|
||||
build test_Test3_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test3
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test3.Interpret
|
||||
|
||||
build test_Test4_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test4
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test4.Interpret
|
||||
|
||||
build test_Test4_examples-droit_successions-tests-tests_droit_succession.catala_fr: test_scope
|
||||
scope = Test4
|
||||
tested_file = examples/droit_successions/tests/tests_droit_succession.catala_fr
|
||||
expected_output = examples/droit_successions/tests/output/tests_droit_succession.catala_fr.Test4.Interpret
|
||||
|
||||
build test_Test4_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test4
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test4.Interpret
|
||||
|
||||
build test_Test5_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test5
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test5.Interpret
|
||||
|
||||
build test_Test5_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test5
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test5.Interpret
|
||||
|
||||
build test_Test6_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test6
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test6.Interpret
|
||||
|
||||
build test_Test6_examples-us_tax_code-tests-test_section_121.catala_en: test_scope
|
||||
scope = Test6
|
||||
tested_file = examples/us_tax_code/tests/test_section_121.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_121.catala_en.Test6.Interpret
|
||||
|
||||
build test_Test7_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test7
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test7.Interpret
|
||||
|
||||
build test_Test8_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test8
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test8.Interpret
|
||||
|
||||
build test_Test9_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: test_scope
|
||||
scope = Test9
|
||||
tested_file = examples/allocations_familiales/tests/tests_allocations_familiales.catala_fr
|
||||
expected_output = examples/allocations_familiales/tests/output/tests_allocations_familiales.catala_fr.Test9.Interpret
|
||||
|
||||
build test_TestSection132_1_examples-us_tax_code-tests-test_section_132.catala_en: test_scope
|
||||
scope = TestSection132_1
|
||||
tested_file = examples/us_tax_code/tests/test_section_132.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_132.catala_en.TestSection132_1.Interpret
|
||||
|
||||
build test_TestSection132_2_examples-us_tax_code-tests-test_section_132.catala_en: test_scope
|
||||
scope = TestSection132_2
|
||||
tested_file = examples/us_tax_code/tests/test_section_132.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_132.catala_en.TestSection132_2.Interpret
|
||||
|
||||
build test_TestSection132_3_examples-us_tax_code-tests-test_section_132.catala_en: test_scope
|
||||
scope = TestSection132_3
|
||||
tested_file = examples/us_tax_code/tests/test_section_132.catala_en
|
||||
expected_output = examples/us_tax_code/tests/output/test_section_132.catala_en.TestSection132_3.Interpret
|
||||
|
||||
build test_TestUnitaire1_examples-tutoriel_fr-tests-test_tutoriel.catala_fr: test_scope
|
||||
scope = TestUnitaire1
|
||||
tested_file = examples/tutoriel_fr/tests/test_tutoriel.catala_fr
|
||||
expected_output = examples/tutoriel_fr/tests/output/test_tutoriel.catala_fr.TestUnitaire1.Interpret
|
||||
|
||||
build test_TestUnitaire2_examples-tutoriel_fr-tests-test_tutoriel.catala_fr: test_scope
|
||||
scope = TestUnitaire2
|
||||
tested_file = examples/tutoriel_fr/tests/test_tutoriel.catala_fr
|
||||
expected_output = examples/tutoriel_fr/tests/output/test_tutoriel.catala_fr.TestUnitaire2.Interpret
|
||||
|
||||
build test_Test_A7_U1_P1_PPa_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P1_PPa
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p1.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p1.catala_pl.Test_A7_U1_P1_PPa.Interpret
|
||||
|
||||
build test_Test_A7_U1_P1_PPb_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P1_PPb
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p1.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p1.catala_pl.Test_A7_U1_P1_PPb.Interpret
|
||||
|
||||
build test_Test_A7_U1_P2_PPa_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P2_PPa
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p2.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p2.catala_pl.Test_A7_U1_P2_PPa.Interpret
|
||||
|
||||
build test_Test_A7_U1_P2_PPb_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P2_PPb
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p2.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p2.catala_pl.Test_A7_U1_P2_PPb.Interpret
|
||||
|
||||
build test_Test_A7_U1_P3_examples-polish_taxes-tests-test_a7_u1_p3.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P3
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p3.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p3.catala_pl.Test_A7_U1_P3.Interpret
|
||||
|
||||
build test_Test_A7_U1_P4_examples-polish_taxes-tests-test_a7_u1_p4.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P4
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p4.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p4.catala_pl.Test_A7_U1_P4.Interpret
|
||||
|
||||
build test_Test_A7_U1_P7_examples-polish_taxes-tests-test_a7_u1_p7.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P7
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p7.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p7.catala_pl.Test_A7_U1_P7.Interpret
|
||||
|
||||
build test_Test_A7_U1_P9_examples-polish_taxes-tests-test_a7_u1_p9.catala_pl: test_scope
|
||||
scope = Test_A7_U1_P9
|
||||
tested_file = examples/polish_taxes/tests/test_a7_u1_p9.catala_pl
|
||||
expected_output = examples/polish_taxes/tests/output/test_a7_u1_p9.catala_pl.Test_A7_U1_P9.Interpret
|
||||
|
||||
build test_UnitTest1_examples-tutorial_en-tests-test_tutorial.catala_en: test_scope
|
||||
scope = UnitTest1
|
||||
tested_file = examples/tutorial_en/tests/test_tutorial.catala_en
|
||||
expected_output = examples/tutorial_en/tests/output/test_tutorial.catala_en.UnitTest1.Interpret
|
||||
|
||||
build test_UnitTest2_examples-tutorial_en-tests-test_tutorial.catala_en: test_scope
|
||||
scope = UnitTest2
|
||||
tested_file = examples/tutorial_en/tests/test_tutorial.catala_en
|
||||
expected_output = examples/tutorial_en/tests/output/test_tutorial.catala_en.UnitTest2.Interpret
|
||||
|
||||
build test_dir_examples-: phony $
|
||||
test_file_examples-tutorial_en-tests-test_tutorial.catala_en $
|
||||
test_file_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_file_examples-allocations_familiales-tests-tests_ouverture_droits.catala_fr $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p3.catala_pl $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p9.catala_pl $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p4.catala_pl $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl $
|
||||
test_file_examples-polish_taxes-tests-test_a7_u1_p7.catala_pl $
|
||||
test_file_examples-tutoriel_fr-tests-test_tutoriel.catala_fr $
|
||||
test_file_examples-droit_successions-tests-tests_droit_succession.catala_fr $
|
||||
test_file_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_file_examples-us_tax_code-tests-test_section_132.catala_en
|
||||
|
||||
build test_file_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr: phony $
|
||||
test_Test13_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test6_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test1_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test7_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test8_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test12_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test5_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test2_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test4_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test11_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test9_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test10_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr $
|
||||
test_Test3_examples-allocations_familiales-tests-tests_allocations_familiales.catala_fr
|
||||
|
||||
build test_file_examples-allocations_familiales-tests-tests_ouverture_droits.catala_fr: phony $
|
||||
test_Test1_examples-allocations_familiales-tests-tests_ouverture_droits.catala_fr
|
||||
|
||||
build test_file_examples-droit_successions-tests-tests_droit_succession.catala_fr: phony $
|
||||
test_Test2_examples-droit_successions-tests-tests_droit_succession.catala_fr $
|
||||
test_Test4_examples-droit_successions-tests-tests_droit_succession.catala_fr $
|
||||
test_Test1_examples-droit_successions-tests-tests_droit_succession.catala_fr $
|
||||
test_Test3_examples-droit_successions-tests-tests_droit_succession.catala_fr
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl: phony $
|
||||
test_Test_A7_U1_P1_PPb_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl $
|
||||
test_Test_A7_U1_P1_PPa_examples-polish_taxes-tests-test_a7_u1_p1.catala_pl
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl: phony $
|
||||
test_Test_A7_U1_P2_PPb_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl $
|
||||
test_Test_A7_U1_P2_PPa_examples-polish_taxes-tests-test_a7_u1_p2.catala_pl
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p3.catala_pl: phony $
|
||||
test_Test_A7_U1_P3_examples-polish_taxes-tests-test_a7_u1_p3.catala_pl
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p4.catala_pl: phony $
|
||||
test_Test_A7_U1_P4_examples-polish_taxes-tests-test_a7_u1_p4.catala_pl
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p7.catala_pl: phony $
|
||||
test_Test_A7_U1_P7_examples-polish_taxes-tests-test_a7_u1_p7.catala_pl
|
||||
|
||||
build test_file_examples-polish_taxes-tests-test_a7_u1_p9.catala_pl: phony $
|
||||
test_Test_A7_U1_P9_examples-polish_taxes-tests-test_a7_u1_p9.catala_pl
|
||||
|
||||
build test_file_examples-tutorial_en-tests-test_tutorial.catala_en: phony $
|
||||
test_UnitTest1_examples-tutorial_en-tests-test_tutorial.catala_en $
|
||||
test_UnitTest2_examples-tutorial_en-tests-test_tutorial.catala_en
|
||||
|
||||
build test_file_examples-tutoriel_fr-tests-test_tutoriel.catala_fr: phony $
|
||||
test_TestUnitaire1_examples-tutoriel_fr-tests-test_tutoriel.catala_fr $
|
||||
test_TestUnitaire2_examples-tutoriel_fr-tests-test_tutoriel.catala_fr
|
||||
|
||||
build test_file_examples-us_tax_code-tests-test_section_121.catala_en: phony $
|
||||
test_Test2_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_Test6_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_Test5_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_Test4_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_Test3_examples-us_tax_code-tests-test_section_121.catala_en $
|
||||
test_Test1_examples-us_tax_code-tests-test_section_121.catala_en
|
||||
|
||||
build test_file_examples-us_tax_code-tests-test_section_132.catala_en: phony $
|
||||
test_TestSection132_3_examples-us_tax_code-tests-test_section_132.catala_en $
|
||||
test_TestSection132_1_examples-us_tax_code-tests-test_section_132.catala_en $
|
||||
test_TestSection132_2_examples-us_tax_code-tests-test_section_132.catala_en
|
||||
|
@ -283,7 +283,10 @@ let collect_all_ninja_build (ninja : ninja) (tested_file : string) (_reset_test_
|
||||
"test_with_scope",
|
||||
("scope", Nj.Expr.Lit scope) :: vars )
|
||||
| None ->
|
||||
( Printf.sprintf "test_%s" tested_file |> Nj.Build.unpath,
|
||||
( Printf.sprintf "test_%s_%s"
|
||||
(catala_backend_to_string expected_output.backend)
|
||||
tested_file
|
||||
|> Nj.Build.unpath,
|
||||
"test_without_scope",
|
||||
vars )
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user