diff --git a/contrib/test/run_test_vectors.sh b/contrib/test/run_test_vectors.sh index 815fb9bf76..74acf93970 100755 --- a/contrib/test/run_test_vectors.sh +++ b/contrib/test/run_test_vectors.sh @@ -55,9 +55,6 @@ cat contrib/test/test-vectors-fixtures/elf-loader-fixtures/*.list | xargs -P 4 - LOG=$LOG_PATH/test_exec_instr cat contrib/test/test-vectors-fixtures/instr-fixtures/*.list | xargs -P 4 -n 1000 ./$OBJDIR/unit-test/test_exec_instr --log-path $LOG -LOG=$LOG_PATH/test_vm_validate -cat contrib/test/test-vectors-fixtures/vm-validate-fixtures/*.list | xargs -P 4 -n 1000 ./$OBJDIR/unit-test/test_exec_sol_compat --log-path $LOG - # check if ./$OBJDIR/unit-test/test_exec_sol_compat_stubbed exists if [ -f ./$OBJDIR/unit-test/test_exec_sol_compat_stubbed ]; then LOG=$LOG_PATH/test_exec_cpi diff --git a/contrib/test/test-vectors-fixtures/instr-fixtures/address-lookup-table.list b/contrib/test/test-vectors-fixtures/instr-fixtures/address-lookup-table.list index ab6f407d1e..acd8b70b98 100644 --- a/contrib/test/test-vectors-fixtures/instr-fixtures/address-lookup-table.list +++ b/contrib/test/test-vectors-fixtures/instr-fixtures/address-lookup-table.list @@ -1512,7 +1512,6 @@ dump/test-vectors/instr/fixtures/address-lookup-table/crash-0f656dcd033e5a44b4a8 dump/test-vectors/instr/fixtures/address-lookup-table/crash-1f3cff85b351a070fa572e17f61439fff44d4eda.fix dump/test-vectors/instr/fixtures/address-lookup-table/crash-3a1871a7a6c5bfbf761d9b5d493342f3be10dcbd.fix dump/test-vectors/instr/fixtures/address-lookup-table/crash-68c04614af9e9bebe693e7e24f5c9a7e2778d402.fix -dump/test-vectors/instr/fixtures/address-lookup-table/crash-f2e925185043128e1cda0e21f2ab338321383ee4.fix dump/test-vectors/instr/fixtures/address-lookup-table/d02c74e2066af419348b38fcb0378c848908966f_2789718.fix dump/test-vectors/instr/fixtures/address-lookup-table/d04b7e66a20914710135a3188a8c2c41030e2abb_2789718.fix dump/test-vectors/instr/fixtures/address-lookup-table/d05dc0007836b1079feead169b4e116f51f94153_2789718.fix diff --git a/contrib/test/test-vectors-fixtures/instr-fixtures/stake.list b/contrib/test/test-vectors-fixtures/instr-fixtures/stake.list index 246ffc0ed8..ee167a23d9 100644 --- a/contrib/test/test-vectors-fixtures/instr-fixtures/stake.list +++ b/contrib/test/test-vectors-fixtures/instr-fixtures/stake.list @@ -584,6 +584,7 @@ dump/test-vectors/instr/fixtures/stake/crash-ee9d61c57649c2eae4ada0e441af06c5d51 dump/test-vectors/instr/fixtures/stake/crash-eeeb2dee8366925a173368a7ca34a3ac6db9b4c3.fix dump/test-vectors/instr/fixtures/stake/crash-f02bc78a2f9ad840fba3f688014fc2609ceec439.fix dump/test-vectors/instr/fixtures/stake/crash-f06e9f3003ca1b182c09e7b4c05ecbae7ec626b4.fix +dump/test-vectors/instr/fixtures/stake/crash-f2e925185043128e1cda0e21f2ab338321383ee4.fix dump/test-vectors/instr/fixtures/stake/crash-f45fe6d2812e3d454829a50c50a524add63c83b0.fix dump/test-vectors/instr/fixtures/stake/crash-f59dab30dc88938ae9d2de5729efa76937242178.fix dump/test-vectors/instr/fixtures/stake/crash-f6a94dfea4a0bc6488a9e3b5f2c56f4b3d514171.fix diff --git a/contrib/test/test-vectors-fixtures/vm-validate-fixtures/vm_validate-fixtures.list b/contrib/test/test-vectors-fixtures/vm-validate-fixtures/vm_validate-fixtures.list deleted file mode 100644 index b8587f3484..0000000000 --- a/contrib/test/test-vectors-fixtures/vm-validate-fixtures/vm_validate-fixtures.list +++ /dev/null @@ -1,286 +0,0 @@ -dump/test-vectors/vm_validate/fixtures/0060841fe855408ee1b75aca5d440261e975d7d7.fix -dump/test-vectors/vm_validate/fixtures/00bffdaca96b9e3544a609bfdb8cce82a08defd7.fix -dump/test-vectors/vm_validate/fixtures/01db25e936eaed25c02ea826c57640a7424fb84b.fix -dump/test-vectors/vm_validate/fixtures/01ec548baccbe69625b54206ef7100f5ed03719f.fix -dump/test-vectors/vm_validate/fixtures/020c7731d9775b67ad0e3ad4db7157b661ed18ca.fix -dump/test-vectors/vm_validate/fixtures/022f36e30159ec10fbb94087ecce83a62dce33c4.fix -dump/test-vectors/vm_validate/fixtures/040e5ac904de86328cca053a15596e118fc5da24.fix -dump/test-vectors/vm_validate/fixtures/046ddc4ef3737c971bb21d31f62937d817f63b85.fix -dump/test-vectors/vm_validate/fixtures/052ab788f1646b958e0ea2c0ef47d00141fc1004.fix -dump/test-vectors/vm_validate/fixtures/0993d77ff4f9f18189e35226e84aa9d70384c352.fix -dump/test-vectors/vm_validate/fixtures/09ba0858d9961ca66d947fa5fa5f94c42064fe34.fix -dump/test-vectors/vm_validate/fixtures/0aa661a157988db3076a31774ebac7f827dea0e1.fix -dump/test-vectors/vm_validate/fixtures/0adfa22632bc6359fe676eee008a148f2af106f4.fix -dump/test-vectors/vm_validate/fixtures/0ae0ab853e5ccb73f4f3f4bb9ea5a93aee3f8261.fix -dump/test-vectors/vm_validate/fixtures/0ae4f711ef5d6e9d26c611fd2c8c8ac45ecbf9e7.fix -dump/test-vectors/vm_validate/fixtures/0dd77928e8dff7e08a0b5d3549ce566d36f5e6b3.fix -dump/test-vectors/vm_validate/fixtures/0e15e3efdb90a03a56d2f7c8cc72866cffc9885c.fix -dump/test-vectors/vm_validate/fixtures/0e27bf9a26c01098f2cffe38f7c17eb4724e79d6.fix -dump/test-vectors/vm_validate/fixtures/0f2bf6d5e1a0209d19f8f6e7d08b3e2d9cf4c5ab.fix -dump/test-vectors/vm_validate/fixtures/0f2d7e01b3a830bf607d14cfda7b1f533317c6c4.fix -dump/test-vectors/vm_validate/fixtures/117b00591c4c098bfc3cb23932da1ccded8f767c.fix -dump/test-vectors/vm_validate/fixtures/11dd791f0f2b211eb6bff9dffd2377e4d5313679.fix -dump/test-vectors/vm_validate/fixtures/1270acf3b52426101025ff311e6dd17c05a9db2c.fix -dump/test-vectors/vm_validate/fixtures/135741a05645817c5636d7a2cd767cad9677f015.fix -dump/test-vectors/vm_validate/fixtures/13e0db898fa5e31eee9833a71863645d3ff83d23.fix -dump/test-vectors/vm_validate/fixtures/141b52f1cd10d27d22b049490a1dcc6654bd8a8a.fix -dump/test-vectors/vm_validate/fixtures/144c518e5149d61ab4bc34643df820372405d61d.fix -dump/test-vectors/vm_validate/fixtures/14fa4d47bcb3316d46d24c073f8e26fadd4c2559.fix -dump/test-vectors/vm_validate/fixtures/1581bb316ece7b9129b87522bfe32c55aee9f53a.fix -dump/test-vectors/vm_validate/fixtures/162234fbb41a8bb2c26ae84cb7133e6d65e72cca.fix -dump/test-vectors/vm_validate/fixtures/16718fba2c9c2489aceeecfbdea2c9b16c30cb7b.fix -dump/test-vectors/vm_validate/fixtures/17bf789e27311a0ab774e7a293b834c82c425d49.fix -dump/test-vectors/vm_validate/fixtures/1a2bed55dfe66761583d74449f369df23653e0af.fix -dump/test-vectors/vm_validate/fixtures/1b02245e18c7d5488560b20ae4f7a717d12b0d5e.fix -dump/test-vectors/vm_validate/fixtures/1c18b7a6e2506af377f8b03dfaccc750e0e29ccf.fix -dump/test-vectors/vm_validate/fixtures/1da89865c5192465f8f4fe62d454c2175aff4441.fix -dump/test-vectors/vm_validate/fixtures/1df5935d4cd349ac78102af001ced100f31449b1.fix -dump/test-vectors/vm_validate/fixtures/1faf62d080a1e13b45be384b7f2a0c0f6df08566.fix -dump/test-vectors/vm_validate/fixtures/21c1ba495f0f20c3f92c130fb20e7a39b3417ed0.fix -dump/test-vectors/vm_validate/fixtures/22b497cdb08df75a792ed3012c982c38cbcdf0c0.fix -dump/test-vectors/vm_validate/fixtures/23ccdee4079fa17430a04105b0bedf898f0c6116.fix -dump/test-vectors/vm_validate/fixtures/247bb521d5c51adf19c7ff70b8308000673c271f.fix -dump/test-vectors/vm_validate/fixtures/24a67b163137def88bbfb956623c502b1c1830ef.fix -dump/test-vectors/vm_validate/fixtures/2581a9df92c62b3b4c663a019361fc8e29f4132d.fix -dump/test-vectors/vm_validate/fixtures/25d15664a7ccdfc9698e5a76189354f31fa17391.fix -dump/test-vectors/vm_validate/fixtures/2670018f8ee06156d3079890d3856fcaff4b946d.fix -dump/test-vectors/vm_validate/fixtures/2679aeed53dce5175ff6b4b53f28f2db04b4ed88.fix -dump/test-vectors/vm_validate/fixtures/26d80dfdc2c16fb203f55eb347a6ac198e1a05ae.fix -dump/test-vectors/vm_validate/fixtures/2975c50ebea667a1d72930bddb72b8290b119b32.fix -dump/test-vectors/vm_validate/fixtures/2a047aed237398f306a5df75decd2b849026a6a5.fix -dump/test-vectors/vm_validate/fixtures/2acec024173c00da3a93ec5815979f86feeaaa8a.fix -dump/test-vectors/vm_validate/fixtures/2e23e3472480cf2a231aa46260f209a7b26562ee.fix -dump/test-vectors/vm_validate/fixtures/2f1050adf64f33298ff0ce423eb86d4728441b21.fix -dump/test-vectors/vm_validate/fixtures/2f4f1d22f6e1b83119fec167a41ed9add074919d.fix -dump/test-vectors/vm_validate/fixtures/306b40a00ac6538d88529f073a6bf226adf83e07.fix -dump/test-vectors/vm_validate/fixtures/30a01f9a42b7599ac005e6704fa17b3ad9a54ad5.fix -dump/test-vectors/vm_validate/fixtures/339820e6c5f6ba11a584e7c37c936e3778147a0a.fix -dump/test-vectors/vm_validate/fixtures/34615c65fc73166bfdd65ead146998bf21b76e61.fix -dump/test-vectors/vm_validate/fixtures/381904152a017cd2762e192125c5c69e226c522b.fix -dump/test-vectors/vm_validate/fixtures/388d0f3e748472dbfaadb48f88a573c9f72ebec8.fix -dump/test-vectors/vm_validate/fixtures/389af1a695b107fc07fc98369fdcb1bbe322dd3e.fix -dump/test-vectors/vm_validate/fixtures/38ed4f3bf4dd90b4e1a246b6433f528a297a6a98.fix -dump/test-vectors/vm_validate/fixtures/39343e35e0cf8e111e4f0f52c63188116135301e.fix -dump/test-vectors/vm_validate/fixtures/3b0c9569c3a4c67a2e7569207510c1f9bc5cec28.fix -dump/test-vectors/vm_validate/fixtures/3b575420ceea4203152041be00dc80519d1532b5.fix -dump/test-vectors/vm_validate/fixtures/3bf7f905eddf0de3b0a0e64cacd62493c6c389b7.fix -dump/test-vectors/vm_validate/fixtures/3c5626ffe527cbc712ede482ea34c259c9cd018e.fix -dump/test-vectors/vm_validate/fixtures/3c606ec5158614d4171a0806646ab861b142e766.fix -dump/test-vectors/vm_validate/fixtures/3d9a8dc570e665c0330ebedd932d7ef813bddfa4.fix -dump/test-vectors/vm_validate/fixtures/3e7fdaf924d109767bb23432c2a5465d5fe301c7.fix -dump/test-vectors/vm_validate/fixtures/3fb04d4e3d3f4fc31ca6efa48ad9e0dc4df5e3a9.fix -dump/test-vectors/vm_validate/fixtures/3fcd41fe7a51d2f968d2633a9ec04b45fe637ae6.fix -dump/test-vectors/vm_validate/fixtures/40bf0c6cf2807a6e3c7a97fbd25244690e752b26.fix -dump/test-vectors/vm_validate/fixtures/421cc2222d2036513025319e05ac7fb77a1a6d5c.fix -dump/test-vectors/vm_validate/fixtures/427eada5386c430a75597deab0f2f8e76b17a5c8.fix -dump/test-vectors/vm_validate/fixtures/433562242c04785ee6a27f508cc6fc0af2d2f1ac.fix -dump/test-vectors/vm_validate/fixtures/4366cdaf13a05aa3d654606e16632e83b5077329.fix -dump/test-vectors/vm_validate/fixtures/438f7a0d58bec66c808086772d04ea5e59827f9a.fix -dump/test-vectors/vm_validate/fixtures/43ad5cf9bd10d9a934b923b629f2f4c73af39621.fix -dump/test-vectors/vm_validate/fixtures/445c64bb497db99a551b813d1b2e167fecc96639.fix -dump/test-vectors/vm_validate/fixtures/4478ed7bc34b0baf62518fe3586808f3e88f2263.fix -dump/test-vectors/vm_validate/fixtures/447f8a8bdde487a627d30743dff07f30059d45ec.fix -dump/test-vectors/vm_validate/fixtures/45375b89fffb88b7fb0102960585386b385a5350.fix -dump/test-vectors/vm_validate/fixtures/4595c5b7ac9f265cdf89acec0069630697680f96.fix -dump/test-vectors/vm_validate/fixtures/4940df133f5cf1a513bc6c608c1da468da530fdc.fix -dump/test-vectors/vm_validate/fixtures/496d3d47a1075e88fc5f482d898d5556d5760797.fix -dump/test-vectors/vm_validate/fixtures/498c60929ea19a0924a83738745a86e7130e9deb.fix -dump/test-vectors/vm_validate/fixtures/4bcd2da58cf1db85dd9e7e52a3fb4d080b770157.fix -dump/test-vectors/vm_validate/fixtures/4ddac4299355a0bcc101c4b13b406bfe39ddfbaf.fix -dump/test-vectors/vm_validate/fixtures/4fe93eeebc5593fe2e231a3986ce86c95c1100dd.fix -dump/test-vectors/vm_validate/fixtures/50cf558caa78030567cf4e265f7c9cba3a2d904b.fix -dump/test-vectors/vm_validate/fixtures/52588ed2bb4bd004bbb2bb30e3bde38825afdfc7.fix -dump/test-vectors/vm_validate/fixtures/53f03a0038b402370dc482d370fd1b6cb65fd552.fix -dump/test-vectors/vm_validate/fixtures/558ae348a40d50bb93d89fa2f25483d0afed1d32.fix -dump/test-vectors/vm_validate/fixtures/55be857d3bc7754b213b14c03e361c7b5d7609f8.fix -dump/test-vectors/vm_validate/fixtures/561b007ea3f3b3fefc83b7398bfe044ee2b6462e.fix -dump/test-vectors/vm_validate/fixtures/56765db937ea35c3ad9bb2015efa05c83eeca473.fix -dump/test-vectors/vm_validate/fixtures/57e29d637804dff916a207896274157342cf68ab.fix -dump/test-vectors/vm_validate/fixtures/57eece87b99825e1bf9e838dfdea8e2f9adda2f7.fix -dump/test-vectors/vm_validate/fixtures/5967c1647660886addbb513475ebd9cf9bffd0a0.fix -dump/test-vectors/vm_validate/fixtures/5a204a490990c65e144497b2407abc99e7778b84.fix -dump/test-vectors/vm_validate/fixtures/5a23269059e106f01d470083931aa3806311e6cc.fix -dump/test-vectors/vm_validate/fixtures/5b35fe03b0139fb59da3224aa296eda2e1a7bd82.fix -dump/test-vectors/vm_validate/fixtures/5b7f3fd4d24e4b68de989facfb2477393e5bf8cf.fix -dump/test-vectors/vm_validate/fixtures/5c2c7b2a90861b03082d3af01f802d42b937476b.fix -dump/test-vectors/vm_validate/fixtures/5c38290813cd155c68773c19b0dd5371b7b1c337.fix -dump/test-vectors/vm_validate/fixtures/5c7d7be28c2b70cc806f465667a798f8c5272b19.fix -dump/test-vectors/vm_validate/fixtures/5ce91e79ac68f43ab332510758b19b6d63e9256b.fix -dump/test-vectors/vm_validate/fixtures/5d518c7cbf452382fa8b1d740005ef5cf0c10107.fix -dump/test-vectors/vm_validate/fixtures/606b239566d9f5ebb621dd1a83b6eac916cd245e.fix -dump/test-vectors/vm_validate/fixtures/60d381a04cc8da93fa00829624d599bb09d505ce.fix -dump/test-vectors/vm_validate/fixtures/60d4b599138aeb6914e14813e7e50dddad3ed02a.fix -dump/test-vectors/vm_validate/fixtures/622f74082b02b6f77186d33e71dc0f9f44595ed6.fix -dump/test-vectors/vm_validate/fixtures/624e4110b6241707578ecefcb0f9188e5c514cf4.fix -dump/test-vectors/vm_validate/fixtures/646aaf623a9b65f3054571ba8680342cf02b6225.fix -dump/test-vectors/vm_validate/fixtures/64898dfc8a26679a4b58f37d1cf6eea9f61845aa.fix -dump/test-vectors/vm_validate/fixtures/64d853586f4e033a1c78343c7962cb3c0ed9a754.fix -dump/test-vectors/vm_validate/fixtures/6651f0e131c83f1245efdbd6fcd389aa7bb5f413.fix -dump/test-vectors/vm_validate/fixtures/669b1c85ecbafe23c999100f55a23e06bf59ead7.fix -dump/test-vectors/vm_validate/fixtures/6798e187e97f92a05cd826ea8d8666030424e977.fix -dump/test-vectors/vm_validate/fixtures/682d762a46fdefc10bf85d2e172f3bfe6f1f5547.fix -dump/test-vectors/vm_validate/fixtures/6a4759572532f022d66e4d9ca64e3317874a7a0d.fix -dump/test-vectors/vm_validate/fixtures/6b01519b9a995c5bb1ecb39f80980be2a335f10d.fix -dump/test-vectors/vm_validate/fixtures/6b08b43754ce487c2a13ddd95a52653f49dacc03.fix -dump/test-vectors/vm_validate/fixtures/6cbd91ab8a6214b3fbe4d00a35cb44b948e9ed1a.fix -dump/test-vectors/vm_validate/fixtures/6eddcb87da4a04f6c36636f074142929788d31a0.fix -dump/test-vectors/vm_validate/fixtures/6f9e7816699d6fa61f4251d6f1912e3fc246c42d.fix -dump/test-vectors/vm_validate/fixtures/6fb24cc9e36eff4d15c44c8c9bf8cf6fc6f2285d.fix -dump/test-vectors/vm_validate/fixtures/707efc314ec536abed535cdb1b2414aba4713577.fix -dump/test-vectors/vm_validate/fixtures/714c16c35844296253557982a48176cb1fd88f4e.fix -dump/test-vectors/vm_validate/fixtures/71d0c94cbed7ea1ac8c1fe10bb526542d1ebbb85.fix -dump/test-vectors/vm_validate/fixtures/74131359971e53d088f1afc5aec348eff8facf82.fix -dump/test-vectors/vm_validate/fixtures/74b8bec1815c972479f0c7a33163154cc785216a.fix -dump/test-vectors/vm_validate/fixtures/755de6d63a7a13e1b9c29bc59b42b6b203d18342.fix -dump/test-vectors/vm_validate/fixtures/76f82f1cad9f132da9facc9235095c3c65f15765.fix -dump/test-vectors/vm_validate/fixtures/77ce0377defbd11b77b1f4ad54ca40ea5ef28490.fix -dump/test-vectors/vm_validate/fixtures/79983df07a6701b9c957858d98252e9ff21f20e3.fix -dump/test-vectors/vm_validate/fixtures/7aa4c07c14dfbb7a89be48be19c49c6a32a5e6fb.fix -dump/test-vectors/vm_validate/fixtures/7b637771b6f5614d997be1b579ba673d91ffb94c.fix -dump/test-vectors/vm_validate/fixtures/7f7a0b9abee0b9d92f8788e01a309fcccf561455.fix -dump/test-vectors/vm_validate/fixtures/804436be88b744f7ca46ac80b8a97af4d061a31f.fix -dump/test-vectors/vm_validate/fixtures/806db02cb2d485aa1fd49c39a8e8529719a18d3b.fix -dump/test-vectors/vm_validate/fixtures/81baa845881a21b19f24255599e27e3c9c3ddf32.fix -dump/test-vectors/vm_validate/fixtures/81e9bbc06946e3c078d1c1aa150ca93e501ace6d.fix -dump/test-vectors/vm_validate/fixtures/829d68c09dbf03d50f9918b8c116c1d2d8c926ba.fix -dump/test-vectors/vm_validate/fixtures/82bb2934f5618b742a561d6dc00aeb42debbc5ea.fix -dump/test-vectors/vm_validate/fixtures/831dbf8e9b67e16f48928228bd4d4647650fced9.fix -dump/test-vectors/vm_validate/fixtures/8332a4fa083af4e55f8e15c5a5da286c084bd1c9.fix -dump/test-vectors/vm_validate/fixtures/8450d77db29fac321d3f175948ecf7e1135d10c6.fix -dump/test-vectors/vm_validate/fixtures/85058501a76b830bd2e993cde4a01ec021ac6504.fix -dump/test-vectors/vm_validate/fixtures/8696cf0f4655636cc93c566c1be2dad311da646c.fix -dump/test-vectors/vm_validate/fixtures/86c6a88d4d0f0a12cb078d81479713e6a25319d2.fix -dump/test-vectors/vm_validate/fixtures/86c96f52a2f3d196454433638f728ecb89a5f404.fix -dump/test-vectors/vm_validate/fixtures/89d6a3b70b33bb0e4d95cbd78aa26411d18f281d.fix -dump/test-vectors/vm_validate/fixtures/8ac4e0e97a7bda9a19827f3112e1b3c602d6595d.fix -dump/test-vectors/vm_validate/fixtures/8b67c34e9d7afb7da46307d419b4e4f42550b2c6.fix -dump/test-vectors/vm_validate/fixtures/8c69a1f0663bc45e9d2c4d5e0df63744f657d4c1.fix -dump/test-vectors/vm_validate/fixtures/8cd537a621659c289f0707bad94719b5782ddb1f.fix -dump/test-vectors/vm_validate/fixtures/8daeb54624836964c9af7468249df4d619ab8663.fix -dump/test-vectors/vm_validate/fixtures/8e913d327c421252fbdb2804300459d4da06649e.fix -dump/test-vectors/vm_validate/fixtures/8fc36a50d0ba5aabfa3cb92d81fe9fdc4686e6a3.fix -dump/test-vectors/vm_validate/fixtures/8fe8f83840a0d770a2d89a0705344ef9425d6ad4.fix -dump/test-vectors/vm_validate/fixtures/9069ca78e7450a285173431b3e52c5c25299e473.fix -dump/test-vectors/vm_validate/fixtures/91fe5f6b9ea689bf3f6b4bbd4301e2eac473f79a.fix -dump/test-vectors/vm_validate/fixtures/928324071a5aed81db973a08c958c355060f24fc.fix -dump/test-vectors/vm_validate/fixtures/951bbc2a5c23029852835595f1c5d5dc6e8a017c.fix -dump/test-vectors/vm_validate/fixtures/9841afe0a0c7c9ad0a6653da6ec7e95b8c068bd8.fix -dump/test-vectors/vm_validate/fixtures/98801f9dedf45e35c7877cc6fc4a8663d5b0ce1a.fix -dump/test-vectors/vm_validate/fixtures/9898d25a214dba04ebd7e3030ac9e2e90ea7a369.fix -dump/test-vectors/vm_validate/fixtures/98c7b5ddac4b90db5a987a33ab8be48422101daf.fix -dump/test-vectors/vm_validate/fixtures/99bf0297f0784dfec268b9afd2915f6c6bb64199.fix -dump/test-vectors/vm_validate/fixtures/9a8c7efca7e5aefbcbb86a9ad6cffa0df3704bfc.fix -dump/test-vectors/vm_validate/fixtures/9b2689364cad505ff52626c4ba6efe61cc69f13a.fix -dump/test-vectors/vm_validate/fixtures/9c11a1f047f57de013bd2d067a0265cec0046ce8.fix -dump/test-vectors/vm_validate/fixtures/9cbd850d47dd321d3f8ce7873d0365432225152e.fix -dump/test-vectors/vm_validate/fixtures/9f190e07caac5aade8609b15bdcc9acb476140a3.fix -dump/test-vectors/vm_validate/fixtures/9f80a82f0d4e51e3c8486200707133627dee4644.fix -dump/test-vectors/vm_validate/fixtures/9f93e44c523897148e3128bf2f30079497a3f511.fix -dump/test-vectors/vm_validate/fixtures/a10909c2cdcaf5adb7e6b092a4faba558b62bd96.fix -dump/test-vectors/vm_validate/fixtures/a1e373efa2f5820871e207361b899f5cb1a4c76c.fix -dump/test-vectors/vm_validate/fixtures/a2c8f59ff04d4906b7e7468470a6f6c1ace4a443.fix -dump/test-vectors/vm_validate/fixtures/a48a0048b16f723baef4c6a087687a7fbd7b60e1.fix -dump/test-vectors/vm_validate/fixtures/a568e30784b1df87b30e1d4a2234de7b706b3d27.fix -dump/test-vectors/vm_validate/fixtures/a6aff0d5cd10b35d27b73fa6f78970148aba588f.fix -dump/test-vectors/vm_validate/fixtures/a6c2c0ae7ee4fd6ac925189e1bd14e6217ef6914.fix -dump/test-vectors/vm_validate/fixtures/a791244395d39f2932ed582c7f874a285365c606.fix -dump/test-vectors/vm_validate/fixtures/a8befe2a9c07c0199bd0c83f463eabea9981d0a3.fix -dump/test-vectors/vm_validate/fixtures/a8d428794947a8ba7200e72f9f412105d7302465.fix -dump/test-vectors/vm_validate/fixtures/aa8b35fed5114915eb9a5828b7aeca24af47f1f7.fix -dump/test-vectors/vm_validate/fixtures/aaac95442e92e46d55d0f5d6eff57fa6d45921ed.fix -dump/test-vectors/vm_validate/fixtures/ac4fd985290ce17b50aef3bf8ddcc82171cec6f3.fix -dump/test-vectors/vm_validate/fixtures/adb04fe862436e64d6bbac54c43e456d24744ade.fix -dump/test-vectors/vm_validate/fixtures/adc56ba9da794f02a87c20db5b2622e50ccf757c.fix -dump/test-vectors/vm_validate/fixtures/adedcc76b67b6a3e209b309790d41f43fcb5a690.fix -dump/test-vectors/vm_validate/fixtures/aff273dda272cd6d5901b8b50fda3a4ef2f3d56c.fix -dump/test-vectors/vm_validate/fixtures/b000403acf3115a97f5006b388d8cdc3dd862c9f.fix -dump/test-vectors/vm_validate/fixtures/b32c03194e03c658007c5b6bdedced39ddefc291.fix -dump/test-vectors/vm_validate/fixtures/b437be5cf51eb87acf9634ef74db8b57ada487ab.fix -dump/test-vectors/vm_validate/fixtures/b7039d88f0c852d1a6960c2843e0bc2207f4edac.fix -dump/test-vectors/vm_validate/fixtures/b775b61837f1b5cadf21b4b3d102aabb0259bc25.fix -dump/test-vectors/vm_validate/fixtures/b7ad4610f6efdf55a4c644565a9fa451ec22755e.fix -dump/test-vectors/vm_validate/fixtures/b8072c74327769c798988cf0fc61e22cf75c6f8d.fix -dump/test-vectors/vm_validate/fixtures/b82462c0f4528bc0a670eaf2a466930f7ef5eede.fix -dump/test-vectors/vm_validate/fixtures/b9027c9bd620c19eeafacfcfaf6ae4f89a607c77.fix -dump/test-vectors/vm_validate/fixtures/b92291c98ccdff52da0ca035f2086e45f64985b9.fix -dump/test-vectors/vm_validate/fixtures/b9d229309ac6226f17634f08be7a0a54bdc26aaf.fix -dump/test-vectors/vm_validate/fixtures/baa7e40c112b9ddf6df41ffb769138178dc51274.fix -dump/test-vectors/vm_validate/fixtures/bd0bcfe5d6bbec38f2142315ca3fc08fe2f4cd21.fix -dump/test-vectors/vm_validate/fixtures/bd94219a79987af3e4d4ce45b07edc2230aaf655.fix -dump/test-vectors/vm_validate/fixtures/be42e2bcf3aec879cb1f158099411ac67818a60d.fix -dump/test-vectors/vm_validate/fixtures/be8307123a0e9ed7c251fe451049c60cbb108244.fix -dump/test-vectors/vm_validate/fixtures/c0a9eda63c6f50c97af05c565f34003bed9154fa.fix -dump/test-vectors/vm_validate/fixtures/c0c7fb8622f9f7ce4a98bf003c26acbc682f4cea.fix -dump/test-vectors/vm_validate/fixtures/c17fd92682ca5b304ac71074b558dda9e8eb4d66.fix -dump/test-vectors/vm_validate/fixtures/c1eb3e8efe081c8340d33414510525c472f6923f.fix -dump/test-vectors/vm_validate/fixtures/c25b3e681684c942794d0d79d5438cf4aef2fec8.fix -dump/test-vectors/vm_validate/fixtures/c3b3795c396c3f64ac68d9304f97b34adfdbf206.fix -dump/test-vectors/vm_validate/fixtures/c3f323dbcdc600ba6787b34e00ad937d513a7b50.fix -dump/test-vectors/vm_validate/fixtures/c41d3c2bebdbc9b3f94fe988566be7bde0f0ac8e.fix -dump/test-vectors/vm_validate/fixtures/c49a9785b2243f2f080daad1747f119acceccfa5.fix -dump/test-vectors/vm_validate/fixtures/c577f7a37657053275f3e3ecc06ec22e6b909366.fix -dump/test-vectors/vm_validate/fixtures/c69a58f52ea6ad614d830656a58e11086c82b725.fix -dump/test-vectors/vm_validate/fixtures/c75da53b1b9683bcb83e2a12e7630e209029209a.fix -dump/test-vectors/vm_validate/fixtures/c78a3da2d4f3415033f3ddf3d23d23e65621548f.fix -dump/test-vectors/vm_validate/fixtures/c87f39dc4fc73bb1b901c010217be71d30884b9a.fix -dump/test-vectors/vm_validate/fixtures/cb7aa192fb60fc13fe93875e4e337acf35b7cacf.fix -dump/test-vectors/vm_validate/fixtures/cbf26386e56640716e0c7daab25c500a6b60c1b6.fix -dump/test-vectors/vm_validate/fixtures/ccd8a88b535021533cfc9746186391901ff854c5.fix -dump/test-vectors/vm_validate/fixtures/cd3be4c10abc425ea3cb7f26ce7538eba9702525.fix -dump/test-vectors/vm_validate/fixtures/ce789d88cd80227bc612dc08bb2fcac63701545f.fix -dump/test-vectors/vm_validate/fixtures/cebf3d0d6eb32f8c045147a59f7fa8c1f7baa880.fix -dump/test-vectors/vm_validate/fixtures/cf4ca14a7adcbc197cd84c1997efdd076911d608.fix -dump/test-vectors/vm_validate/fixtures/d3048c29439575c0eb7c3d3e9076a1613f125fc4.fix -dump/test-vectors/vm_validate/fixtures/d3399b7262fb56cb9ed053d68db9291c410839c4.fix -dump/test-vectors/vm_validate/fixtures/d576c908b43ed0023cd12557d5831f20b24e42ab.fix -dump/test-vectors/vm_validate/fixtures/d57f6ae722ce13e7d78b12f8f8c040412eb00ca1.fix -dump/test-vectors/vm_validate/fixtures/d70e269880d65617fe606119c58a001440cc026a.fix -dump/test-vectors/vm_validate/fixtures/d7699308c38cd04eeb732577a82d31d04e05a339.fix -dump/test-vectors/vm_validate/fixtures/d95a3c6ef55e5584d0be12a06b5fcd72bb40deb5.fix -dump/test-vectors/vm_validate/fixtures/d991c16949bd5e85e768385440e18d493ce3aa46.fix -dump/test-vectors/vm_validate/fixtures/dca2581eb667fd4122665f03b5028da927aa029d.fix -dump/test-vectors/vm_validate/fixtures/dcee9d0c35d9a5c6d1ffafe68ccf36a6ab5cb699.fix -dump/test-vectors/vm_validate/fixtures/ddb293f707a1c60cff962c6616ae2e0780bc39e2.fix -dump/test-vectors/vm_validate/fixtures/de7193d13e361a77f23155af51633f620bc67ffd.fix -dump/test-vectors/vm_validate/fixtures/dea677db7393dd6799bf7225ccbc3c155133e440.fix -dump/test-vectors/vm_validate/fixtures/deb6c11e1971aa61dbbcbc76e5ea7553a5bea7b7.fix -dump/test-vectors/vm_validate/fixtures/df44812586d12298c713564804b42142fb68a8c9.fix -dump/test-vectors/vm_validate/fixtures/e0fdc90c2ca2a0219c99d2758e68c18875a3e11e.fix -dump/test-vectors/vm_validate/fixtures/e26e20a5517108b9d475a8ac6ac551bae4230c95.fix -dump/test-vectors/vm_validate/fixtures/e2fb33fd1899c3193daa4b0e4b05db726700a7af.fix -dump/test-vectors/vm_validate/fixtures/e3566a55f93be2a8307fb8d53e65d741172e0c59.fix -dump/test-vectors/vm_validate/fixtures/e54e28a33a35c8c0a1c1125f3fbd905ea2bfd279.fix -dump/test-vectors/vm_validate/fixtures/e608c24b8139d282199495bfec188647d50cbf27.fix -dump/test-vectors/vm_validate/fixtures/e69c0e005dac0dbd477a79ede4b9044f0e627c30.fix -dump/test-vectors/vm_validate/fixtures/e6df9466c2f386bd56402cb4f602d0b6e36f8d51.fix -dump/test-vectors/vm_validate/fixtures/e6e9bb6f443e9264882bd49895e74831a9f30e2a.fix -dump/test-vectors/vm_validate/fixtures/e720edbdb52e928d1e3ff77a8c05d98a491ddf7c.fix -dump/test-vectors/vm_validate/fixtures/e80e322703c31fd74578166d081f71a105bfea5c.fix -dump/test-vectors/vm_validate/fixtures/e9b4e87cd77a8e3f98bf8a4700c029d5db14250c.fix -dump/test-vectors/vm_validate/fixtures/e9fa5d0ec7df9b18b688b4248f5f44e702762cd4.fix -dump/test-vectors/vm_validate/fixtures/ea7d2164761f6945601634e6a9bc53d1809faef1.fix -dump/test-vectors/vm_validate/fixtures/ec28ffbe2f4b229b10250df38345d28aaf2c0426.fix -dump/test-vectors/vm_validate/fixtures/ecbffb23eb3053ead40dfc45afbb2d565afa1d03.fix -dump/test-vectors/vm_validate/fixtures/ecf01e7592b2906c2bb0229ff92a6402afb5dbd9.fix -dump/test-vectors/vm_validate/fixtures/ed39f5823354c9e03e31ffd55e3caf78cc1c0720.fix -dump/test-vectors/vm_validate/fixtures/ee7c4833938414701f5f1a8652ba39b463fc8b14.fix -dump/test-vectors/vm_validate/fixtures/eec667cb490bcd70c678d50992a372c5a0971606.fix -dump/test-vectors/vm_validate/fixtures/eed837d1ba883510613fc885903d5df52040aba6.fix -dump/test-vectors/vm_validate/fixtures/f174a4d98bb187497550366957d7a94d9855fde9.fix -dump/test-vectors/vm_validate/fixtures/f18fe1be3e2df538857b48c6508562b041cd9212.fix -dump/test-vectors/vm_validate/fixtures/f521e97666b11f96dc599ef1bd80d9372aa04234.fix -dump/test-vectors/vm_validate/fixtures/f68f30ee52133e400606a6be91d2d982388b43a2.fix -dump/test-vectors/vm_validate/fixtures/f7be0fe0992afba10a7fcab4fafbf27de14ac35c.fix -dump/test-vectors/vm_validate/fixtures/f844785fe917f9333b62fac6bb1c7aa281e9aec5.fix -dump/test-vectors/vm_validate/fixtures/f8ebbbe3ad6a8cfd13607fd3a7fad7a3a7a50158.fix -dump/test-vectors/vm_validate/fixtures/fa188a52aa6fb77f989fe04610b1bcb7f47fb9fa.fix -dump/test-vectors/vm_validate/fixtures/fa205d2a65684c6245a2272facf45fb12ace4014.fix -dump/test-vectors/vm_validate/fixtures/fb54af79db2a49223e7d185fe7ced816587ecd55.fix -dump/test-vectors/vm_validate/fixtures/fbc1f0f80827262f077149d81336f6465b8140d2.fix -dump/test-vectors/vm_validate/fixtures/fc1b4a1e091ce1c6bff41829e7db3b11ec252f4f.fix -dump/test-vectors/vm_validate/fixtures/fc87927e1c8adf4c51bc758d5a90fb98f6d8b172.fix -dump/test-vectors/vm_validate/fixtures/fca9f302764e1c52bbc80ea1b176b1dff7928cb7.fix -dump/test-vectors/vm_validate/fixtures/fd55968c7e439b6f5598c06eedb892534115664f.fix -dump/test-vectors/vm_validate/fixtures/fe33a5294947319f659281f40b91cfc8de54a571.fix -dump/test-vectors/vm_validate/fixtures/fef4381c984fca3a393cd0e5f85a6d1989bd59fe.fix -dump/test-vectors/vm_validate/fixtures/ff60891eee5e7baab9af4caeaedb6dd399673449.fix diff --git a/src/flamenco/runtime/tests/fd_exec_sol_compat.c b/src/flamenco/runtime/tests/fd_exec_sol_compat.c index 787fec2d1d..fb539ee004 100644 --- a/src/flamenco/runtime/tests/fd_exec_sol_compat.c +++ b/src/flamenco/runtime/tests/fd_exec_sol_compat.c @@ -488,7 +488,7 @@ sol_compat_txn_fixture( fd_exec_instr_test_runner_t * runner, // Compare effects fd_exec_test_txn_result_t * effects = (fd_exec_test_txn_result_t *) output; - int ok = sol_compat_cmp_txn( effects, &fixture->output ); + int ok = sol_compat_cmp_txn( &fixture->output, effects ); // Cleanup pb_release( &fd_exec_test_txn_fixture_t_msg, fixture ); @@ -566,29 +566,6 @@ sol_compat_vm_interp_fixture( fd_exec_instr_test_runner_t * runner, return ok; } -int -sol_compat_validate_vm_fixture( fd_exec_instr_test_runner_t * runner, - uchar const * in, - ulong in_sz ) { - // Decode fixture - fd_exec_test_validate_vm_fixture_t fixture[1] = {0}; - if( !sol_compat_decode( &fixture, in, in_sz, &fd_exec_test_validate_vm_fixture_t_msg ) ) { - FD_LOG_WARNING(( "Invalid validate_vm fixture." )); - return 0; - } - - // Execute - void * output = NULL; - sol_compat_execute_wrapper( runner, &fixture->input, &output, fd_exec_vm_validate_test_run ); - - // Compare effects - int ok = sol_compat_cmp_binary_strict( output, &fixture->output, &fd_exec_test_validate_vm_effects_t_msg ); - - // Cleanup - pb_release( &fd_exec_test_validate_vm_fixture_t_msg, fixture ); - return ok; -} - /* * execute_v1 */ @@ -755,43 +732,6 @@ sol_compat_vm_syscall_execute_v1( uchar * out, return ok; } -int -sol_compat_vm_validate_v1( uchar * out, - ulong * out_sz, - uchar const * in, - ulong in_sz ) { - // Setup - ulong fmem[ 64 ]; - fd_exec_instr_test_runner_t * runner = sol_compat_setup_scratch_and_runner( fmem ); - - // Decode context - fd_exec_test_full_vm_context_t input[1] = {0}; - void * res = sol_compat_decode( &input, in, in_sz, &fd_exec_test_full_vm_context_t_msg ); - if ( res==NULL ) { - sol_compat_cleanup_scratch_and_runner( runner ); - return 0; - } - - // Execute - void * output = NULL; - sol_compat_execute_wrapper( runner, input, &output, fd_exec_vm_validate_test_run ); - - // Encode effects - int ok = 0; - if( output ) { - ok = !!sol_compat_encode( out, out_sz, output, &fd_exec_test_validate_vm_effects_t_msg ); - } - - // cleanup - pb_release( &fd_exec_test_full_vm_context_t_msg, input ); - sol_compat_cleanup_scratch_and_runner( runner ); - - // Check wksp usage is 0 - sol_compat_check_wksp_usage(); - - return ok; -} - /* We still need a separate entrypoint since other harnesses (namely sfuzz-agave) do something other than wrap their vm_syscall equivalent */ int diff --git a/src/flamenco/runtime/tests/fd_exec_sol_compat.h b/src/flamenco/runtime/tests/fd_exec_sol_compat.h index c0aaadff78..06901be569 100644 --- a/src/flamenco/runtime/tests/fd_exec_sol_compat.h +++ b/src/flamenco/runtime/tests/fd_exec_sol_compat.h @@ -43,11 +43,6 @@ sol_compat_syscall_fixture( fd_exec_instr_test_runner_t * runner, uchar const * in, ulong in_sz ); -int -sol_compat_validate_vm_fixture( fd_exec_instr_test_runner_t * runner, - uchar const * in, - ulong in_sz ); - int sol_compat_vm_interp_fixture( fd_exec_instr_test_runner_t * runner, uchar const * in, diff --git a/src/flamenco/runtime/tests/fd_vm_test.c b/src/flamenco/runtime/tests/fd_vm_test.c index d8c654200f..20bb1c2e2c 100644 --- a/src/flamenco/runtime/tests/fd_vm_test.c +++ b/src/flamenco/runtime/tests/fd_vm_test.c @@ -28,89 +28,6 @@ fd_vm_syscall_noop( void * _vm, return 0; } -ulong -fd_exec_vm_validate_test_run( fd_exec_instr_test_runner_t * runner, - void const * input_, - void ** output_, - void * output_buf, - ulong output_bufsz ) { - (void) runner; - fd_exec_test_full_vm_context_t const * input = fd_type_pun_const( input_ ); - fd_exec_test_validate_vm_effects_t ** output = fd_type_pun( output_ ); - - if( FD_UNLIKELY( !input->has_vm_ctx ) ) { - return 0UL; - } - - fd_exec_instr_ctx_t * ctx = test_vm_minimal_exec_instr_ctx( fd_libc_alloc_virtual() ); - - FD_TEST( output_bufsz >= sizeof(fd_exec_test_validate_vm_effects_t) ); - - /* Capture outputs */ - FD_SCRATCH_ALLOC_INIT( l, output_buf ); - - fd_exec_test_validate_vm_effects_t * effects = - FD_SCRATCH_ALLOC_APPEND( l, alignof(fd_exec_test_validate_vm_effects_t), - sizeof (fd_exec_test_validate_vm_effects_t) ); - FD_SCRATCH_ALLOC_FINI( l, 1UL ); - - fd_valloc_t valloc = fd_scratch_virtual(); - do{ - fd_exec_test_vm_context_t const * vm_ctx = &input->vm_ctx; - - /* Follows prost/solfuzz-agave behavior for empty bytes field */ - uchar * rodata = NULL; - ulong rodata_sz = 0UL; - if( FD_LIKELY( vm_ctx->rodata ) ) { - rodata = vm_ctx->rodata->bytes; - rodata_sz = vm_ctx->rodata->size; - } - - ulong * text = (ulong *) (rodata + vm_ctx->rodata_text_section_offset); - ulong text_cnt = vm_ctx->rodata_text_section_length / 8UL; - - fd_vm_t * vm = fd_vm_join( fd_vm_new( fd_valloc_malloc( valloc, fd_vm_align(), fd_vm_footprint() ) ) ); - FD_TEST( vm ); - - fd_vm_init( - vm, - ctx, - 0, /* heap_max */ - 0, /* cu_avail */ - rodata, - rodata_sz, - text, - text_cnt, - vm_ctx->rodata_text_section_offset, - vm_ctx->rodata_text_section_length, - 0, /* entry_pc, not used in validate at the moment */ - NULL, /* calldests */ - TEST_VM_DEFAULT_SBPF_VERSION, - NULL, /* syscalls */ - NULL, /* trace */ - NULL, /* sha */ - NULL, /* mem regions */ - 0, /* mem regions count */ - NULL, /* mem regions accs */ - 0, /* is deprecated */ - FD_FEATURE_ACTIVE( ctx->slot_ctx, bpf_account_data_direct_mapping ) /* direct mapping */ - ); - effects->result = fd_vm_validate( vm ); - - fd_valloc_free( valloc, fd_vm_delete( fd_vm_leave( vm ) ) ); - - } while(0); - - - /* Run vm validate and capture result */ - - effects->success = (effects->result == FD_VM_SUCCESS); - *output = effects; - - test_vm_exec_instr_ctx_delete( ctx ); - return sizeof (fd_exec_test_validate_vm_effects_t); -} - void fd_setup_vm_acc_region_metas( fd_vm_acc_region_meta_t * acc_regions_meta, fd_vm_t * vm, diff --git a/src/flamenco/runtime/tests/fd_vm_test.h b/src/flamenco/runtime/tests/fd_vm_test.h index 9901652c8a..272fb5dd6f 100644 --- a/src/flamenco/runtime/tests/fd_vm_test.h +++ b/src/flamenco/runtime/tests/fd_vm_test.h @@ -16,14 +16,6 @@ // void * output_buf, // ulong output_bufsz ); - -ulong -fd_exec_vm_validate_test_run( fd_exec_instr_test_runner_t * runner, - void const * input_, - void ** output_, - void * output_buf, - ulong output_bufsz ); - ulong fd_exec_vm_interp_test_run( fd_exec_instr_test_runner_t * runner, fd_exec_test_syscall_context_t const *input, diff --git a/src/flamenco/runtime/tests/test_exec_sol_compat.c b/src/flamenco/runtime/tests/test_exec_sol_compat.c index cea7b1fd6a..ee839a5688 100644 --- a/src/flamenco/runtime/tests/test_exec_sol_compat.c +++ b/src/flamenco/runtime/tests/test_exec_sol_compat.c @@ -43,8 +43,6 @@ run_test( fd_exec_instr_test_runner_t * runner, ok = sol_compat_syscall_fixture( runner, buf, file_sz ); } else if( strstr( path, "/cpi/" ) != NULL ) { ok = sol_compat_syscall_fixture( runner, buf, file_sz ); - } else if( strstr( path, "/vm_validate/" ) != NULL ) { - ok = sol_compat_validate_vm_fixture( runner, buf, file_sz ); } else if( strstr( path, "/vm_interp/" ) != NULL ){ ok = sol_compat_vm_interp_fixture( runner, buf, file_sz ); } else {