~~# FDG 编译与测试【optimism develop老分支】 ## e2e 测试 ### optimism 根目录编译 ``` git clone -b develop https://github.com/JustXxx/optimism.git cd optimism make install-geth make cannon-prestate make devnet-allocs ``` ### 执行FDG e2e测试(完整测试,部分用例失败) ``` cd op-e2e make test-fault-proofs ``` ### 指定e2e函数测试 ``` cd op-e2e go test -v ./faultproofs/ -test.run TestOutputAlphabetGame_ChallengerWins ``` ## 合约单元测试 ``` cd optimism/packages/contracts-bedrock/ forge test --mc FaultDisputeGame_Test ``` ## e2e 测试【bill Nary=4分支】,[点我查看MR](https://github.com/JustXxx/optimism/pull/7) ### optimism 根目录编译 ``` git clone -b develop_4ary_e2e https://github.com/JustXxx/optimism.git cd optimism make install-geth make cannon-prestate make devnet-allocs ``` ### 简单测试用例【bill】,[点我查看测试用例](https://github.com/JustXxx/optimism/blob/46cd50f7317f626714f54477b58a178239d3f1e4/op-e2e/faultproofs/simple_test.go#L57) ``` cd op-e2e go test -v ./faultproofs/ -test.run TestSimple_Cannon_ChallengerWins ``` ## 合约单元测试, [点我查看主要测试用例](https://github.com/JustXxx/optimism/blob/46cd50f7317f626714f54477b58a178239d3f1e4/packages/contracts-bedrock/test/dispute/FaultDisputeGame.t.sol#L1196) ``` cd optimism/packages/contracts-bedrock/ forge test --mc FaultDisputeGame4Ary_Test ```~~