From 1e5353824a7859d5cfa98565b5a879d5ca7e582a Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 13 Jan 2015 10:32:02 +0100 Subject: updated tests --- .../VMTests/RandomTests/201501121323MULMOD_GO.json | 54 ---------------------- .../VMTests/RandomTests/201501121328MULMOD_GO.json | 47 ------------------- .../VMTests/RandomTests/201501121329MULMODGO.json | 47 ------------------- .../VMTests/RandomTests/201501121402CALL_GO.json | 53 --------------------- .../VMTests/RandomTests/201501121408ADDMOD_GO.json | 47 ------------------- .../VMTests/RandomTests/201501121416ADDMOD_GO.json | 47 ------------------- .../201501122225CALL_TO_PRECOMPILED_GO.json | 53 +++++++++++++++++++++ .../201501122239BALANCE_OF_ADDRESS_GO.json | 47 +++++++++++++++++++ .../RandomTests/201501130902PYTHON_BLOCKHASH.json | 53 +++++++++++++++++++++ ...01501130903PYTHON_INVALID_JUMP_DESTINATION.json | 31 +++++++++++++ .../201501130906PYTHON_INVALID_OPCODE.json | 31 +++++++++++++ 11 files changed, 215 insertions(+), 295 deletions(-) delete mode 100644 tests/files/VMTests/RandomTests/201501121323MULMOD_GO.json delete mode 100644 tests/files/VMTests/RandomTests/201501121328MULMOD_GO.json delete mode 100644 tests/files/VMTests/RandomTests/201501121329MULMODGO.json delete mode 100644 tests/files/VMTests/RandomTests/201501121402CALL_GO.json delete mode 100644 tests/files/VMTests/RandomTests/201501121408ADDMOD_GO.json delete mode 100644 tests/files/VMTests/RandomTests/201501121416ADDMOD_GO.json create mode 100644 tests/files/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json create mode 100644 tests/files/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json create mode 100644 tests/files/VMTests/RandomTests/201501130902PYTHON_BLOCKHASH.json create mode 100644 tests/files/VMTests/RandomTests/201501130903PYTHON_INVALID_JUMP_DESTINATION.json create mode 100644 tests/files/VMTests/RandomTests/201501130906PYTHON_INVALID_OPCODE.json (limited to 'tests/files/VMTests/RandomTests') diff --git a/tests/files/VMTests/RandomTests/201501121323MULMOD_GO.json b/tests/files/VMTests/RandomTests/201501121323MULMOD_GO.json deleted file mode 100644 index 1daf701e0..000000000 --- a/tests/files/VMTests/RandomTests/201501121323MULMOD_GO.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x414341424443850659a055450955", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "0", - "logs" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "bloom" : "00000000000000000000800000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000", - "data" : "0x", - "topics" : [ - ] - } - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x414341424443850659a055450955", - "nonce" : "0", - "storage" : { - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" : "0x02" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x414341424443850659a055450955", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501121328MULMOD_GO.json b/tests/files/VMTests/RandomTests/201501121328MULMOD_GO.json deleted file mode 100644 index fd03ec48f..000000000 --- a/tests/files/VMTests/RandomTests/201501121328MULMOD_GO.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x424341434541904255151409a29a9c55", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "0", - "logs" : [ - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x424341434541904255151409a29a9c55", - "nonce" : "0", - "storage" : { - "0x02" : "0x0f4240" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x424341434541904255151409a29a9c55", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501121329MULMODGO.json b/tests/files/VMTests/RandomTests/201501121329MULMODGO.json deleted file mode 100644 index 755fb5925..000000000 --- a/tests/files/VMTests/RandomTests/201501121329MULMODGO.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x444443424444554380330955", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "0", - "logs" : [ - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x444443424444554380330955", - "nonce" : "0", - "storage" : { - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x444443424444554380330955", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501121402CALL_GO.json b/tests/files/VMTests/RandomTests/201501121402CALL_GO.json deleted file mode 100644 index 6a847d261..000000000 --- a/tests/files/VMTests/RandomTests/201501121402CALL_GO.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - { - "data" : "0x0000", - "destination" : "0000000000000000000000000000000000000002", - "gasLimit" : "0", - "value" : "0" - } - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x4243434242434243f14555", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "9670", - "logs" : [ - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4243434242434243f14555", - "nonce" : "0", - "storage" : { - "0x0f4240" : "0x01" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4243434242434243f14555", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501121408ADDMOD_GO.json b/tests/files/VMTests/RandomTests/201501121408ADDMOD_GO.json deleted file mode 100644 index 026a513af..000000000 --- a/tests/files/VMTests/RandomTests/201501121408ADDMOD_GO.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x4241455544414443385908069c9e8955", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "0", - "logs" : [ - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4241455544414443385908069c9e8955", - "nonce" : "0", - "storage" : { - "0x0f4240" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4241455544414443385908069c9e8955", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501121416ADDMOD_GO.json b/tests/files/VMTests/RandomTests/201501121416ADDMOD_GO.json deleted file mode 100644 index 8f11540d2..000000000 --- a/tests/files/VMTests/RandomTests/201501121416ADDMOD_GO.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "randomVMtest" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "2", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x4341434543454542559313088e55", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "0", - "logs" : [ - ], - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4341434543454542559313088e55", - "nonce" : "0", - "storage" : { - "0x02" : "0x0f4240" - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x4341434543454542559313088e55", - "nonce" : "0", - "storage" : { - } - } - } - } -} diff --git a/tests/files/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json b/tests/files/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json new file mode 100644 index 000000000..d5ee2bbf3 --- /dev/null +++ b/tests/files/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json @@ -0,0 +1,53 @@ +{ + "randomVMtest" : { + "callcreates" : [ + { + "data" : "0x0000", + "destination" : "0000000000000000000000000000000000000002", + "gasLimit" : "0", + "value" : "1000000" + } + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "2", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x424345424245424335f15155", + "data" : "0x", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "9668", + "logs" : [ + ], + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "999999999999000000", + "code" : "0x424345424245424335f15155", + "nonce" : "0", + "storage" : { + "0x" : "0x02" + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x424345424245424335f15155", + "nonce" : "0", + "storage" : { + } + } + } + } +} diff --git a/tests/files/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json b/tests/files/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json new file mode 100644 index 000000000..1741d4a0f --- /dev/null +++ b/tests/files/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json @@ -0,0 +1,47 @@ +{ + "randomVMtest" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "2", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x434244424342303155", + "data" : "0x", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "9673", + "logs" : [ + ], + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x434244424342303155", + "nonce" : "0", + "storage" : { + "0x0de0b6b3a7640000" : "0x02" + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x434244424342303155", + "nonce" : "0", + "storage" : { + } + } + } + } +} diff --git a/tests/files/VMTests/RandomTests/201501130902PYTHON_BLOCKHASH.json b/tests/files/VMTests/RandomTests/201501130902PYTHON_BLOCKHASH.json new file mode 100644 index 000000000..2303227af --- /dev/null +++ b/tests/files/VMTests/RandomTests/201501130902PYTHON_BLOCKHASH.json @@ -0,0 +1,53 @@ +{ + "randomVMtest" : { + "callcreates" : [ + { + "data" : "0x0000", + "destination" : "", + "gasLimit" : "9890", + "value" : "1000000" + } + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "2", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x454243404244404045f060048160a255", + "data" : "0x", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "9587", + "logs" : [ + ], + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "999999999999000000", + "code" : "0x454243404244404045f060048160a255", + "nonce" : "0", + "storage" : { + "0xa2" : "0x945304eb96065b2a98b57a48a06ae28d285a71b5" + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x454243404244404045f060048160a255", + "nonce" : "0", + "storage" : { + } + } + } + } +} diff --git a/tests/files/VMTests/RandomTests/201501130903PYTHON_INVALID_JUMP_DESTINATION.json b/tests/files/VMTests/RandomTests/201501130903PYTHON_INVALID_JUMP_DESTINATION.json new file mode 100644 index 000000000..a5f37de74 --- /dev/null +++ b/tests/files/VMTests/RandomTests/201501130903PYTHON_INVALID_JUMP_DESTINATION.json @@ -0,0 +1,31 @@ +{ + "randomVMtest" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "2", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x42414444404343342061036e57a4084155", + "data" : "0x", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x42414444404343342061036e57a4084155", + "nonce" : "0", + "storage" : { + } + } + } + } +} diff --git a/tests/files/VMTests/RandomTests/201501130906PYTHON_INVALID_OPCODE.json b/tests/files/VMTests/RandomTests/201501130906PYTHON_INVALID_OPCODE.json new file mode 100644 index 000000000..004f2401a --- /dev/null +++ b/tests/files/VMTests/RandomTests/201501130906PYTHON_INVALID_OPCODE.json @@ -0,0 +1,31 @@ +{ + "randomVMtest" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "2", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x434545430c737040877855", + "data" : "0x", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x434545430c737040877855", + "nonce" : "0", + "storage" : { + } + } + } + } +} -- cgit