mutate_cpp icon indicating copy to clipboard operation
mutate_cpp copied to clipboard

How to save mutation code?

Open zhangshoufeng97 opened this issue 3 years ago • 2 comments

I need every mutation code,how to get it (source code).

zhangshoufeng97 avatar Jun 06 '22 13:06 zhangshoufeng97

This is currently not possible, but PRs welcome!

nlohmann avatar Jun 06 '22 14:06 nlohmann

@zhangshoufeng97 Note that you could do that by copying your source at the time you are asked to build. So say your normal build command is make, you can write a script, something like this:

#!/bin/bash

cp -r . ../mutation-123/.
make

Then use that script instead of just make.

As for the number (123 above), it's up to you to come up with an algorithm to generate it. You could simply use a file:

COUNT=`cat count.txt`
COUNT=`expr $COUNT + 1`
echo $COUNT >count.txt

cp -r . ../mutation-${COUNT}/.

Anything that works for you.

AlexisWilke avatar Aug 12 '23 21:08 AlexisWilke