Skip to content

Commit

Permalink
Support system tests with arbitrary many *.lobster files
Browse files Browse the repository at this point in the history
Add `README.md` to explain how system tests work.
  • Loading branch information
phiwuu committed Dec 17, 2024
1 parent eb9dade commit 53fc14f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions tests-system/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The script `run_tool_tests.py` executes system tests.
It can execute system tests for all lobster tools.

The one and only command line argument to the script must be the name of the tool under test.
For example, to run system tests for `lobster-trlc`, the tool must be started like this:
```
> python3 run_tool_tests.py lobster-trlc
```
4 changes: 1 addition & 3 deletions tests-system/run_tool_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def _get_expected_lobster_output_file_name(self) -> str:
Note: The system test must always be prepared such that the tool under test
generates the lobster file in the "input" folder. Other test setups are not
supported. Furthermore, the tool under test must generate exactly one output
file. Tools like 'lobster-cpptest' are able to generate multiple files. Testing
that is currently not supported.
supported.
"""
for dir_entry in scandir(self.get_expected_output_path()):
if (not dir_entry.is_dir()) and dir_entry.name.endswith(".lobster"):
Expand Down

0 comments on commit 53fc14f

Please sign in to comment.