Better ninja file

This commit is contained in:
Denis Merigoux 2022-02-04 12:12:09 +01:00
parent 9e80a5978e
commit 252af3e58c
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3
2 changed files with 12 additions and 15 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ compiler/**/.merlin
legifrance_oauth*
*.html
.vscode/
.ninja_*

View File

@ -1,22 +1,18 @@
rule test_scope
command = catala -s $scope Interpret $in --unstyled 2>&1 $
| colordiff -u -b $out -
command = _build/default/compiler/catala.exe -s $scope Interpret $tested_file --unstyled 2>&1 $
| colordiff -u -b $expected_output -
description = Testing scope $scope of file $tested_file
build tests/test_array/good/output/aggregation_2.catala_en.A.Interpret:$
test_scope $
tests/test_array/good/aggregation_2.catala_en
build test1: test_scope
scope = A
tested_file = tests/test_array/good/aggregation_2.catala_en
expected_output = tests/test_array/good/output/aggregation_2.catala_en.A.Interpret
build tests/test_array/good/output/aggregation_2.catala_en.B.Interpret:$
test_scope $
tests/test_array/good/aggregation_2.catala_en
build test2: test_scope
scope = B
expected_output = tests/test_array/good/output/aggregation_2.catala_en.B.Interpret
tested_file = tests/test_array/good/aggregation_2.catala_en
build always: phony
build test: phony $
tests/test_array/good/output/aggregation_2.catala_en.A.Interpret $
tests/test_array/good/output/aggregation_2.catala_en.B.Interpret
build test2: phony test
build test: phony test1 test2
default test