erigon-pulse/core/vm/testdata
Martin Holst Swende 36b78abe61
core/vm: instruction tests (#16327)
This PR makes it easy to generate and execute testcases for VM arithmetic operations. By enabling and running the testcase TestWriteExpectedValues, a set of json files are created which contain input and output for each arith operation.
The test TestJsonTestcases executes all of those tests.

While meaningless as is, this PR makes it less risky to make changes (optimizations) to the vm operations, since there will be a larger body of testcases.
2019-04-04 11:19:38 +02:00
..
testcases_add.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_and.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_byte.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_div.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_eq.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_exp.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_gt.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_lt.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_mod.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_mul.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_or.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_sar.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_sdiv.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_sgt.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_shl.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_shr.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_signext.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_slt.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_smod.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_sub.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
testcases_xor.json core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00