Injecting command line arguments in an Ada AUnit test

93 views Asked by At

I would like to inject command line arguments in an Ada AUnit test so that the design under test could receive proper Ada.Command_Line property values.

Concrete example: GHDL's procedure Main receives command line arguments, and I would like to test invocations such as

ghdl_mcode -r --workdir=/home/test test1

I can obviously hack around, but I am looking for a canonical, "official", general AUnit way to do this, if such a solution exists, without modifying the source code.

0

There are 0 answers