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"
|
legacyFolder = "eth_tests" / "LegacyTests" / "Constantinople" / "BlockchainTests"
|
||||||
newFolder = "eth_tests" / "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
|
# run all test fixtures
|
||||||
suite "block chain json tests":
|
if config.legacy:
|
||||||
jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
suite "block chain json tests":
|
||||||
suite "new block chain json tests":
|
jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
||||||
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
else:
|
||||||
|
suite "new block chain json tests":
|
||||||
|
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
||||||
else:
|
else:
|
||||||
# execute single test in debug mode
|
# execute single test in debug mode
|
||||||
let config = test_config.getConfiguration()
|
|
||||||
if config.testSubject.len == 0:
|
if config.testSubject.len == 0:
|
||||||
echo "missing test subject"
|
echo "missing test subject"
|
||||||
quit(QuitFailure)
|
quit(QuitFailure)
|
||||||
|
|
|
@ -197,15 +197,17 @@ proc generalStateJsonMain*(debugMode = false) =
|
||||||
legacyFolder = "eth_tests" / "LegacyTests" / "Constantinople" / "GeneralStateTests"
|
legacyFolder = "eth_tests" / "LegacyTests" / "Constantinople" / "GeneralStateTests"
|
||||||
newFolder = "eth_tests" / "GeneralStateTests"
|
newFolder = "eth_tests" / "GeneralStateTests"
|
||||||
|
|
||||||
if paramCount() == 0 or not debugMode:
|
let config = getConfiguration()
|
||||||
|
if config.testSubject == "" or not debugMode:
|
||||||
# run all test fixtures
|
# run all test fixtures
|
||||||
suite "generalstate json tests":
|
if config.legacy:
|
||||||
jsonTest(legacyFolder , "GeneralStateTests", testFixture, skipGSTTests)
|
suite "generalstate json tests":
|
||||||
suite "new generalstate json tests":
|
jsonTest(legacyFolder , "GeneralStateTests", testFixture, skipGSTTests)
|
||||||
jsonTest(newFolder, "newGeneralStateTests", testFixture, skipNewGSTTests)
|
else:
|
||||||
|
suite "new generalstate json tests":
|
||||||
|
jsonTest(newFolder, "newGeneralStateTests", testFixture, skipNewGSTTests)
|
||||||
else:
|
else:
|
||||||
# execute single test in debug mode
|
# execute single test in debug mode
|
||||||
let config = getConfiguration()
|
|
||||||
if config.testSubject.len == 0:
|
if config.testSubject.len == 0:
|
||||||
echo "missing test subject"
|
echo "missing test subject"
|
||||||
quit(QuitFailure)
|
quit(QuitFailure)
|
||||||
|
|
Loading…
Reference in New Issue