Skip to content

Commit d273cab

Browse files
added list option
1 parent 443b71a commit d273cab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ner_environment/build_system/build_system.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,18 @@ def build(profile: str = typer.Option(None, "--profile", "-p", callback=unsuppor
6464

6565
@app.command(help="Run Unity Test source file")
6666
def test(clean: bool = typer.Option(False, "--clean", help="Clean the build directory before building", show_default=True),
67+
list: bool = typer.Option(False, "--list", help="List available tests to run", show_default=True),
6768
files: List[str] = typer.Argument(None, help="Specific test file to run (optional)")):
6869

6970
if clean:
7071
command = ["docker", "compose", "run", "--rm", "ner-gcc-arm", "sh", "-c", f"cd Drivers/Embedded-Base/testing/ && make clean"]
7172
run_command(command, stream_output=True)
7273
return
74+
75+
if list:
76+
command = ["docker", "compose", "run", "--rm", "ner-gcc-arm", "sh", "-c", f"cd Drivers/Embedded-Base/testing/ && make list"]
77+
run_command(command, stream_output=True)
78+
return
7379

7480
file_args = " ".join(files) if files else ""
7581
command = ["docker", "compose", "run", "--rm", "ner-gcc-arm", "sh", "-c", f"cd Drivers/Embedded-Base/testing/ && make TEST_FILES='{file_args}'"]

0 commit comments

Comments
 (0)