Skip to content

Commit

Permalink
rebase to main, solving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel committed Nov 8, 2024
1 parent 23eb0f6 commit 9e9d5dc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ full-release:
coverage:
coverage combine -q
coverage html --rcfile=coverage.cfg
coverage report --rcfile=coverage.cfg --fail-under=64
coverage report --rcfile=coverage.cfg --fail-under=72

test: system-tests unit-tests
make coverage
Expand Down Expand Up @@ -128,10 +128,10 @@ requirements.lobster: lobster/tools/trlc/requirements.trlc \
code.lobster: $(wildcard lobster/tools/trlc/*.py)
lobster-python --out code.lobster lobster/tools/trlc

unit-tests.lobster: $(wildcard test-unit/lobster-trlc/*.py)
lobster-python --activity --out unit-tests.lobster test-unit/lobster-trlc
unit-tests.lobster: $(wildcard tests-unit/lobster-trlc/*.py)
lobster-python --activity --out unit-tests.lobster tests-unit/lobster-trlc

system-tests.lobster: $(wildcard test-system/*/*.rsl) \
$(wildcard test-system/*/*.trlc) \
$(wildcard test-system/*/tracing)
python3 test-system/lobster-trlc/lobster-trlc-system-test.py
system-tests.lobster: $(wildcard tests-system/*/*.rsl) \
$(wildcard tests-system/*/*.trlc) \
$(wildcard tests-system/*/tracing)
python3 tests-system/lobster-trlc/lobster-trlc-system-test.py
16 changes: 8 additions & 8 deletions documentation/example_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ <h5>tests-integration/projects/basic/potato.trlc</h5>
<div>Traces to:
<ul>
<li>TRLC Linked_requirement <a href='#item-fbfa01aa359da14836c3fe53cd7363bfb1ffb782'>example.req_important</a></li>
<li>Python Method <a href='#item-40f9403e943ba8922eff8382a64552eaee96b05d'>nor.Example</a></li>
<li>Python Method <a href='#item-71acdb8dec7433006b51349a696a9e3b11a3c7d6'>nor.Example</a></li>
<li>Python Method <a href='#item-44aca84976176f453e178bdd3323e7e9813dcebe'>nor.Example.helper_function</a></li>
<li>Python Method <a href='#item-4fe151cfc168f08ff6bc308291ecbee34309b652'>nor.Example.nor</a></li>
</ul>
</div>
<div>Issues:
Expand Down Expand Up @@ -666,9 +666,9 @@ <h5>tests-integration/projects/basic/nor.py</h5>
</div>
</div>
<!-- end item -->
<!-- begin item python nor.Example -->
<div class="item-ok" id="item-40f9403e943ba8922eff8382a64552eaee96b05d">
<div class="item-name"><svg width="24" height="24" viewBox="0 0 456 461" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden"><g transform="translate(-825 -84)"><path d="M839 310.5C839 193.139 934.811 98 1053 98 1171.19 98 1267 193.139 1267 310.5 1267 427.86 1171.19 523 1053 523 934.811 523 839 427.86 839 310.5Z" stroke="#008000" stroke-width="27.5" stroke-miterlimit="8" fill="#4EA72E" fill-rule="evenodd"/><text font-family="Segoe UI Symbol,Segoe UI Symbol_MSFontService,sans-serif" font-weight="400" font-size="202" transform="matrix(1 0 0 1 972.144 378)"></text></g></svg> Python Method nor.Example</div>
<!-- begin item python nor.Example.helper_function -->
<div class="item-ok" id="item-44aca84976176f453e178bdd3323e7e9813dcebe">
<div class="item-name"><svg width="24" height="24" viewBox="0 0 456 461" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden"><g transform="translate(-825 -84)"><path d="M839 310.5C839 193.139 934.811 98 1053 98 1171.19 98 1267 193.139 1267 310.5 1267 427.86 1171.19 523 1053 523 934.811 523 839 427.86 839 310.5Z" stroke="#008000" stroke-width="27.5" stroke-miterlimit="8" fill="#4EA72E" fill-rule="evenodd"/><text font-family="Segoe UI Symbol,Segoe UI Symbol_MSFontService,sans-serif" font-weight="400" font-size="202" transform="matrix(1 0 0 1 972.144 378)"></text></g></svg> Python Method nor.Example.helper_function</div>
<div class="attribute">Source:
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
<a href="https://github.com/bmw-software-engineering/lobster/blob/main/tests-integration/projects/basic/nor.py#L13" target="_blank">tests-integration/projects/basic/nor.py:13</a>
Expand All @@ -682,9 +682,9 @@ <h5>tests-integration/projects/basic/nor.py</h5>
</div>
</div>
<!-- end item -->
<!-- begin item python nor.Example-1 -->
<div class="item-ok" id="item-71acdb8dec7433006b51349a696a9e3b11a3c7d6">
<div class="item-name"><svg width="24" height="24" viewBox="0 0 456 461" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden"><g transform="translate(-825 -84)"><path d="M839 310.5C839 193.139 934.811 98 1053 98 1171.19 98 1267 193.139 1267 310.5 1267 427.86 1171.19 523 1053 523 934.811 523 839 427.86 839 310.5Z" stroke="#008000" stroke-width="27.5" stroke-miterlimit="8" fill="#4EA72E" fill-rule="evenodd"/><text font-family="Segoe UI Symbol,Segoe UI Symbol_MSFontService,sans-serif" font-weight="400" font-size="202" transform="matrix(1 0 0 1 972.144 378)"></text></g></svg> Python Method nor.Example</div>
<!-- begin item python nor.Example.nor -->
<div class="item-ok" id="item-4fe151cfc168f08ff6bc308291ecbee34309b652">
<div class="item-name"><svg width="24" height="24" viewBox="0 0 456 461" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden"><g transform="translate(-825 -84)"><path d="M839 310.5C839 193.139 934.811 98 1053 98 1171.19 98 1267 193.139 1267 310.5 1267 427.86 1171.19 523 1053 523 934.811 523 839 427.86 839 310.5Z" stroke="#008000" stroke-width="27.5" stroke-miterlimit="8" fill="#4EA72E" fill-rule="evenodd"/><text font-family="Segoe UI Symbol,Segoe UI Symbol_MSFontService,sans-serif" font-weight="400" font-size="202" transform="matrix(1 0 0 1 972.144 378)"></text></g></svg> Python Method nor.Example.nor</div>
<div class="attribute">Source:
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
<a href="https://github.com/bmw-software-engineering/lobster/blob/main/tests-integration/projects/basic/nor.py#L17" target="_blank">tests-integration/projects/basic/nor.py:17</a>
Expand Down
1 change: 1 addition & 0 deletions lobster/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def write_report(self, filename):

with open(filename, "w", encoding="UTF-8") as fd:
json.dump(report, fd, indent=2)
fd.write("\n")

def load_report(self, filename):
assert isinstance(filename, str)
Expand Down
1 change: 1 addition & 0 deletions tests-integration/projects/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ html_report.html: cppcode.lobster gtests.lobster mcode.lobster system-requiremen
@lobster-online-report
@cp report.lobster report.reference_output
@lobster-html-report
@cp lobster_report.html ../../../documentation/example_report.html
@lobster-ci-report | tee ci_report.reference_output

cppcode.lobster: foo.h foo.cpp
Expand Down
2 changes: 1 addition & 1 deletion tests-integration/projects/filter/report.reference_output
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,4 @@
}
},
"matrix": []
}
}

0 comments on commit 9e9d5dc

Please sign in to comment.