Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save mutation code? #26

Open
zhangshoufeng97 opened this issue Jun 6, 2022 · 2 comments
Open

How to save mutation code? #26

zhangshoufeng97 opened this issue Jun 6, 2022 · 2 comments

Comments

@zhangshoufeng97
Copy link

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

@nlohmann
Copy link
Owner

nlohmann commented Jun 6, 2022

This is currently not possible, but PRs welcome!

@AlexisWilke
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants