Skip to content

Commit

Permalink
use gas for GasTests
Browse files Browse the repository at this point in the history
  • Loading branch information
anvacaru committed Dec 22, 2023
1 parent 9712d1b commit 23ca4c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/tests/integration/test-data/foundry-prove-with-gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
GasTest.testInfiniteGas()
GasTest.testSetGas()
StoreTest.testGasLoadColdVM()
StoreTest.testGasLoadWarmUp()
StoreTest.testGasLoadWarmVM()
StoreTest.testGasStoreColdVM()
StoreTest.testGasStoreWarmUp()
StoreTest.testGasStoreWarmVM()
8 changes: 4 additions & 4 deletions src/tests/integration/test_foundry_prove.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def assert_or_update_k_output(k_file: Path, expected_file: Path, *, update: bool
ALL_PROVE_TESTS: Final = tuple((TEST_DATA_DIR / 'foundry-prove-all').read_text().splitlines())
SKIPPED_PROVE_TESTS: Final = set((TEST_DATA_DIR / 'foundry-prove-skip').read_text().splitlines())
SKIPPED_LEGACY_TESTS: Final = set((TEST_DATA_DIR / 'foundry-prove-skip-legacy').read_text().splitlines())
GAS_TESTS: Final = set((TEST_DATA_DIR / 'foundry-prove-with-gas').read_text().splitlines())

SHOW_TESTS = set((TEST_DATA_DIR / 'foundry-show').read_text().splitlines())

Expand All @@ -141,14 +142,13 @@ def test_foundry_prove(
):
pytest.skip()

prove_options = ProveOptions(counterexample_info=True, bug_report=bug_report, use_gas=test_id in GAS_TESTS)

# When
prove_res = foundry_prove(
foundry,
tests=[(test_id, None)],
prove_options=ProveOptions(
counterexample_info=True,
bug_report=bug_report,
),
prove_options=prove_options,
rpc_options=RPCOptions(
port=server.port,
),
Expand Down

0 comments on commit 23ca4c3

Please sign in to comment.