c4-project / c4t

Runs concurrent C compiler tests
MIT License
1 stars 0 forks source link

Make selected mutant interpolatable in compiler config #108

Closed MattWindsor91 closed 3 years ago

MattWindsor91 commented 3 years ago

We currently have compiler run interpolation support, but only for the ${time} variable, which expands to the UNIX timestamp when the compiler was configured.

This issue tracks adding a ${mutant} variable, which tracks the Mutation.Selection variable in the plan (if it exists). This variable will eventually be stepped upwards by the mutation test runtime, and so will be the correct thing to set C4_MUTATION to when mutating.

While I'm at it, it's probably a good idea to rename ${time} to something more indicative, like ${config_time}.