Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat(docs): add README for debugging tests (#498)
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
Co-authored-by: Roger <[email protected]>
  • Loading branch information
3 people committed Jan 12, 2024
1 parent c63e681 commit b4a102d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions integration_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to debug test cases?
* start docker compose
```
./docker/start.sh
```

* deploy L1 contracts
```
# replace $taiko-mono with the taiko-mono repo path.
TAIKO_MONO_DIR=$taiko-mono ./integration_test/deploy_l1_contract.sh
```

* show environment variables
```
# replace $taiko-mono with the taiko-mono repo path.
TAIKO_MONO_DIR=$taiko-mono ./integration_test/test_env.sh
```

* copy the result of previous step and paste it into `Debug configurations`
> after debugging, don't forget stop docker compose!
```
./docker/stop.sh
```
22 changes: 22 additions & 0 deletions integration_test/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ export L1_SECURITY_COUNCIL_PRIVATE_KEY=0xdbda1821b80551c9d65939329250298aa3472ba
export L1_PROPOSER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
export TREASURY=0x1670010000000000000000000000000000010001

# show the integration test environment variables.
echo "TAIKO_MONO_DIR=$TAIKO_MONO_DIR"
echo "L1_NODE_HTTP_ENDPOINT=$L1_NODE_HTTP_ENDPOINT"
echo "L1_NODE_WS_ENDPOINT=$L1_NODE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_HTTP_ENDPOINT=$L2_EXECUTION_ENGINE_HTTP_ENDPOINT"
echo "L2_EXECUTION_ENGINE_WS_ENDPOINT=$L2_EXECUTION_ENGINE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_AUTH_ENDPOINT=$L2_EXECUTION_ENGINE_AUTH_ENDPOINT"
echo "TAIKO_L1_ADDRESS=$TAIKO_L1_ADDRESS"
echo "TAIKO_L2_ADDRESS=$TAIKO_L2_ADDRESS"
echo "TAIKO_TOKEN_ADDRESS=$TAIKO_TOKEN_ADDRESS"
echo "ASSIGNMENT_HOOK_ADDRESS=$ASSIGNMENT_HOOK_ADDRESS"
echo "TIMELOCK_CONTROLLER=$TIMELOCK_CONTROLLER"
echo "ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS=$ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS"
echo "GUARDIAN_PROVER_CONTRACT_ADDRESS=$GUARDIAN_PROVER_CONTRACT_ADDRESS"
echo "L1_SIGNAL_SERVICE_CONTRACT_ADDRESS=$L1_SIGNAL_SERVICE_CONTRACT_ADDRESS"
echo "L1_CONTRACT_OWNER_PRIVATE_KEY=$L1_CONTRACT_OWNER_PRIVATE_KEY"
echo "L1_SECURITY_COUNCIL_PRIVATE_KEY=$L1_SECURITY_COUNCIL_PRIVATE_KEY"
echo "L1_PROPOSER_PRIVATE_KEY=$L1_PROPOSER_PRIVATE_KEY"
echo "L1_PROVER_PRIVATE_KEY=$L1_PROVER_PRIVATE_KEY"
echo "TREASURY=$TREASURY"
echo "JWT_SECRET=$JWT_SECRET"

0 comments on commit b4a102d

Please sign in to comment.