@@ -15,49 +15,34 @@ with a minor exception (new check added).
1515
1616This work was supported by a grant from the Ethereum Foundation.
1717
18- # Pre-requisites
19-
20- Install pyspec using the top-level Makefile, this will install necessary
21- pre-requiesites.
22-
23- ```
24- > make pyspec
25- ```
26-
2718# Generating tests
2819
2920From the root directory:
3021
3122```
32- > python -m tests.generators.compliance_runners.fork_choice.test_gen -o ${test_dir} --fc-gen-config ${config}
33- ```
34-
35- where ` config ` can be either: ` tiny ` , ` small ` or \` standard.
36-
37- Or specify path to the configuration file directly:
38-
39- ```
40- > python -m tests.generators.compliance_runners.fork_choice.test_gen -o ${test_dir} --fc-gen-config-path ${config_path}
23+ make comptests fc_gen_config=<config>
4124```
4225
43- There are three configurations in the repo : [ tiny] ( tiny/ ) , [ small] ( small/ ) and
44- [ standard] ( standard/ ) .
26+ where ` config ` can be either : [ ` tiny ` ] ( tiny/ ) , [ ` small ` ] ( small/ ) or
27+ [ ` standard ` ] ( standard/ ) .
4528
4629# Running tests
4730
4831From the root directory:
4932
5033```
51- > python -m tests.generators.compliance_runners.fork_choice.test_run -i ${test_dir}
34+ make _pyspec # Initialize virtual environment
35+ python -m tests.generators.compliance_runners.fork_choice.test_run -i ${test_dir}
5236```
5337
5438# Generating configurations
5539
56- Files in [ tiny] ( tiny/ ) , [ small] ( small/ ) and [ standard] ( standard/ ) are generated
57- with [ generate_test_instances.py] ( generate_test_instances.py ) , e.g.
40+ Files in [ ` tiny ` ] ( tiny/ ) , [ ` small ` ] ( small/ ) and [ ` standard ` ] ( standard/ ) are
41+ generated with [ ` generate_test_instances.py ` ] ( generate_test_instances.py ) , e.g.
5842
5943```
60- > python -m tests.generators.compliance_runners.fork_choice.generate_test_instances
44+ make _pyspec # Initialize virtual environment
45+ python -m tests.generators.compliance_runners.fork_choice.generate_test_instances
6146```
6247
6348But one normally doesn't need to generate them.
0 commit comments