split legacy and new test to save time
This commit is contained in:
parent
ad284e3d25
commit
03bed02512
|
@ -763,15 +763,17 @@ proc blockchainJsonMain*(debugMode = false) =
|
|||
legacyFolder = "eth_tests" / "LegacyTests" / "Constantinople" / "BlockchainTests"
|
||||
newFolder = "eth_tests" / "BlockChainTests"
|
||||
|
||||
if paramCount() == 0 or not debugMode:
|
||||
let config = test_config.getConfiguration()
|
||||
if config.testSubject == "" or not debugMode:
|
||||
# run all test fixtures
|
||||
suite "block chain json tests":
|
||||
jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
||||
suite "new block chain json tests":
|
||||
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
||||
if config.legacy:
|
||||
suite "block chain json tests":
|
||||
jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
||||
else:
|
||||
suite "new block chain json tests":
|
||||
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
||||
else:
|
||||
# execute single test in debug mode
|
||||
let config = test_config.getConfiguration()
|
||||
if config.testSubject.len == 0:
|
||||
echo "missing test subject"
|
||||
quit(QuitFailure)
|
||||
|
|
|
@ -197,15 +197,17 @@ proc generalStateJsonMain*(debugMode = false) =
|
|||
legacyFolder = "eth_tests" / "LegacyTests" / "Constantinople" / "GeneralStateTests"
|
||||
newFolder = "eth_tests" / "GeneralStateTests"
|
||||
|
||||
if paramCount() == 0 or not debugMode:
|
||||
let config = getConfiguration()
|
||||
if config.testSubject == "" or not debugMode:
|
||||
# run all test fixtures
|
||||
suite "generalstate json tests":
|
||||
jsonTest(legacyFolder , "GeneralStateTests", testFixture, skipGSTTests)
|
||||
suite "new generalstate json tests":
|
||||
jsonTest(newFolder, "newGeneralStateTests", testFixture, skipNewGSTTests)
|
||||
if config.legacy:
|
||||
suite "generalstate json tests":
|
||||
jsonTest(legacyFolder , "GeneralStateTests", testFixture, skipGSTTests)
|
||||
else:
|
||||
suite "new generalstate json tests":
|
||||
jsonTest(newFolder, "newGeneralStateTests", testFixture, skipNewGSTTests)
|
||||
else:
|
||||
# execute single test in debug mode
|
||||
let config = getConfiguration()
|
||||
if config.testSubject.len == 0:
|
||||
echo "missing test subject"
|
||||
quit(QuitFailure)
|
||||
|
|
Loading…
Reference in New Issue