In order to enforce traceability of the test environment, we'd like to have a system variable in the CANoe configuration, storing a simple string that references the version of the configuration itself.
What we are trying to achieve is the following:
on preStart
{
@versionsysvar = // callback of a command line call returning the version as a string
}
Both SysExec
and SysExecCmd
are not an option. So far, I couldn't find a way that doesn't involve creating a dll wrapper, import it and run it. I wander if, maybe, there is a way, after all. Any ideas?
EDIT
Let's say the configuration is shared under SVN. It might be any versioning system of sort. Each tester has a branch with some degree of freedom, so that the version number must be fetched at each measurement start. E.g. When measurement start, goal is to populate a system variable with current Revision number of SVN, retrieved via a command line call.
Please note, this is just an example. What I'd like to avoid, if possible, is to add a third element, say a dll or a COM object fetching the versioning object.
Ref: In CAPL, is there any function to start/open an executable in background?