Skip to content

Commit

Permalink
Prepare CI specific config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Aug 13, 2024
1 parent f420936 commit 6a87599
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gambit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
solc-select install 0.8.16
solc-select use 0.8.16
- name: Verify solc Installation
run: solc --version
- name: Set config file
run: cp ./test-mutation/config-templates/config-ci.json ./test-mutation/config.json

- name: Run mutation tests
run: |
Expand Down
132 changes: 132 additions & 0 deletions test-mutation/config-templates/config-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
[
{
"filename": "../contracts/tokenbridge/ethereum/L1ArbitrumMessenger.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1ArbitrumExtendedGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1ArbitrumGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1CustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1ERC20Gateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1ForceOnlyReverseCustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1GatewayRouter.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1OrbitCustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1OrbitERC20Gateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1OrbitGatewayRouter.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1OrbitReverseCustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1ReverseCustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/ethereum/gateway/L1WethGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
}
]
24 changes: 1 addition & 23 deletions test-mutation/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,6 @@
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/arbitrum/gateway/L2CustomGateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
},
{
"filename": "../contracts/tokenbridge/arbitrum/gateway/L2ERC20Gateway.sol",
"sourceroot": "..",
"solc_remappings": [
"@openzeppelin=../node_modules/@openzeppelin",
"@arbitrum=../node_modules/@arbitrum"
],
"num_mutants": 4,
"random_seed": true
]
}
]

0 comments on commit 6a87599

Please sign in to comment.