tezos-checker / checker

An in-development "robocoin" system for the Tezos blockchain
24 stars 16 forks source link

Parameterize mutate.py and build system changes #184

Closed utdemir closed 3 years ago

utdemir commented 3 years ago

I wanted to have a nightly CI task to run our mutation script. In order to do that, I also had to teach dune to distinguish our fast and slow tests.

So, this PR contains a few changes:

dune exec tests/testBurrow.exe 

You can use the aliases with:

dune build @run-fast-tests 
dune build @run-avl-tests

# or alternatively
make fast-test

This change is in the same spirit as https://github.com/tezos-checker/checker/pull/108. I choose to implement it as dune tasks more granularly, since I assume that the modules to test per mutation can overlap, and we might end up with arbitrary groupings.

./scripts/mutate.py --test 'dune build @run-fast-tests' --num-mutations 2 parameters.ml burrow.ml

After this PR it should be easy to introduce a new cronjob (whatever the GitHub Actions equivalent is) to run something like the command right above. I haven't done this within this PR since it was getting too big.