forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#13810 from ethereum/external-tests-mainte…
…nance External tests maintenance
- Loading branch information
Showing
13 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ emscripten_build/ | |
/docs/_build | ||
/docs/_static/robots.txt | ||
/deps | ||
/reports | ||
|
||
# vim stuff | ||
[._]*.sw[a-p] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ function euler_test | |
|
||
# Disable tests that won't pass on the ir presets due to Hardhat heuristics. Note that this also disables | ||
# them for other presets but that's fine - we want same code run for benchmarks to be comparable. | ||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2453 gets fixed. | ||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/3365 gets fixed. | ||
sed -i "/expectError: 'JUNK_UPGRADE_TEST_FAILURE'/d" test/moduleUpgrade.js | ||
sed -i "/et\.expect(errMsg)\.to\.contain('e\/collateral-violation');/d" test/flashLoanNative.js | ||
|
||
|
@@ -73,10 +73,6 @@ function euler_test | |
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" | ||
force_hardhat_unlimited_contract_size "$config_file" | ||
npm install | ||
|
||
# TODO: Remove this when https://github.com/Uniswap/v3-periphery/issues/313 gets fixed. | ||
npm install @uniswap/[email protected] | ||
|
||
replace_version_pragmas | ||
neutralize_packaged_contracts | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,9 @@ function gnosis_safe_test | |
|
||
# Disable tests that won't pass on the ir presets due to Hardhat heuristics. Note that this also disables | ||
# them for other presets but that's fine - we want same code run for benchmarks to be comparable. | ||
# TODO: Remove this when Hardhat adjusts heuristics for IR (https://github.com/nomiclabs/hardhat/issues/2115). | ||
# TODO: Remove this when Hardhat adjusts heuristics for IR (https://github.com/nomiclabs/hardhat/issues/3365). | ||
sed -i "s|\(it\)\(('should not allow to call setup on singleton'\)|\1.skip\2|g" test/core/GnosisSafe.Setup.spec.ts | ||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2453 gets fixed. | ||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/3365 gets fixed. | ||
sed -i 's|\(it\)\(("changes the expected storage slot without touching the most important ones"\)|\1.skip\2|g' test/libraries/SignMessageLib.spec.ts | ||
sed -i "s|\(it\)\(('can be used only via DELEGATECALL opcode'\)|\1.skip\2|g" test/libraries/SignMessageLib.spec.ts | ||
sed -i 's|\(describe\)\(("Upgrade from Safe 1.1.1"\)|\1.skip\2|g' test/migration/UpgradeFromSafe111.spec.ts | ||
|
@@ -82,7 +82,7 @@ function gnosis_safe_test | |
# TODO: Remove this when Gnosis merges https://github.com/gnosis/safe-contracts/pull/394 | ||
sed -i "s|\(function isValidSignature(bytes \)calldata\( _data, bytes \)calldata\( _signature)\)|\1memory\2memory\3|g" contracts/handler/CompatibilityFallbackHandler.sol | ||
|
||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2453 gets fixed. | ||
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/3365 gets fixed. | ||
sed -i "s|it\(('should enforce delegatecall'\)|it.skip\1|g" test/accessors/SimulateTxAccessor.spec.ts | ||
sed -i "s|it\(('can only be called from Safe itself'\)|it.skip\1|g" test/libraries/Migration.spec.ts | ||
sed -i "s|it\(('should enforce delegatecall to MultiSend'\)|it.skip\1|g" test/libraries/MultiSend.spec.ts | ||
|
@@ -122,10 +122,6 @@ function gnosis_safe_test | |
# TODO: Remove when https://github.com/safe-global/safe-contracts/issues/436 is resolved. | ||
npx npm install @nomiclabs/[email protected] | ||
|
||
# Hardhat 2.9.5 introduced a bug with handling padded arguments to getStorageAt(). | ||
# TODO: Remove when https://github.com/NomicFoundation/hardhat/issues/2709 is fixed. | ||
npx npm install [email protected] | ||
|
||
replace_version_pragmas | ||
[[ $BINARY_TYPE == solcjs ]] && force_solc_modules "${DIR}/solc/dist" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters