mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
trident: Update to match changes done to other external tests in the preset selection PR
This commit is contained in:
parent
4842774ab8
commit
823f0da3ee
@ -58,9 +58,8 @@ function trident_test
|
||||
legacy-optimize-evm+yul
|
||||
)
|
||||
|
||||
local selected_optimizer_presets
|
||||
selected_optimizer_presets=$(circleci_select_steps_multiarg "${settings_presets[@]}")
|
||||
print_optimizer_presets_or_exit "$selected_optimizer_presets"
|
||||
[[ $SELECTED_PRESETS != "" ]] || SELECTED_PRESETS=$(circleci_select_steps_multiarg "${settings_presets[@]}")
|
||||
print_presets_or_exit "$SELECTED_PRESETS"
|
||||
|
||||
setup_solc "$DIR" "$BINARY_TYPE" "$BINARY_PATH"
|
||||
download_project "$repo" "$ref_type" "$ref" "$DIR"
|
||||
@ -71,7 +70,7 @@ function trident_test
|
||||
|
||||
neutralize_package_json_hooks
|
||||
force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH"
|
||||
force_hardhat_compiler_settings "$config_file" "$(first_word "$selected_optimizer_presets")" "$config_var"
|
||||
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var"
|
||||
yarn install
|
||||
|
||||
replace_version_pragmas
|
||||
@ -89,7 +88,7 @@ function trident_test
|
||||
# version check. It's not used by tests so we can remove it.
|
||||
rm -r node_modules/@sushiswap/core/
|
||||
|
||||
for preset in $selected_optimizer_presets; do
|
||||
for preset in $SELECTED_PRESETS; do
|
||||
hardhat_run_test "$config_file" "$preset" "${compile_only_presets[*]}" compile_fn test_fn "$config_var"
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user