diff --git a/Makefile b/Makefile index 6287f7d..e94b0a0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL := /bin/bash -PY_MODULE := test_generator +PY_MODULE := fuzz_utils TEST_MODULE := tests # Optionally overriden by the user, if they're using a virtual environment manager. @@ -20,7 +20,7 @@ TESTS := # Optionally overridden by the user/CI, to limit the installation to a specific # subset of development dependencies. -TEST_GENERATOR_EXTRA := dev +FUZZ_UTILS_EXTRA := dev # If the user selects a specific test pattern to run, set `pytest` to fail fast # and only run tests that match the pattern. @@ -47,7 +47,7 @@ $(VENV)/pyvenv.cfg: pyproject.toml # Create our Python 3 virtual environment python3 -m venv env $(VENV_BIN)/python -m pip install --upgrade pip - $(VENV_BIN)/python -m pip install -e .[$(TEST_GENERATOR_EXTRA)] + $(VENV_BIN)/python -m pip install -e .[$(FUZZ_UTILS_EXTRA)] .PHONY: lint lint: $(VENV)/pyvenv.cfg diff --git a/README.md b/README.md index ab3b5bc..106fbae 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ These commands will install all the Python libraries and tools required to run ` ## Example -In order to generate a test file for the [BasicTypes.sol](test/src/BasicTypes.sol) contract, based on the Echidna corpus reproducers for this contract ([corpus-basic](tests/test_data/echidna-corpora/corpus-basic/)), we need to `cd` into the `tests/test_data` directory which contains the Foundry project and run the command: +In order to generate a test file for the [BasicTypes.sol](tests/test_data/src/BasicTypes.sol) contract, based on the Echidna corpus reproducers for this contract ([corpus-basic](tests/test_data/echidna-corpora/corpus-basic/)), we need to `cd` into the `tests/test_data` directory which contains the Foundry project and run the command: ```bash fuzz-utils ./src/BasicTypes.sol --corpus-dir echidna-corpora/corpus-basic --contract "BasicTypes" --test-directory "./test/" --inheritance-path "../src/" --fuzzer echidna ```