feature: Binary E2E tests
Implemented the following E2E tests: - src/wasm/test/wasm.test.binary.addnums.pas - src/wasm/test/wasm.test.binary.arithmetic.pas - src/wasm/test/wasm.test.binary.locals.pas - src/wasm/test/wasm.test.binary.memroundtrip.pas - src/wasm/test/wasm.test.binary.return42.pas
This commit is contained in:
1 parent
a5192366ed
commit
835f6f86cc
9 files changed
+345
-25
No files matched your search
@@ -9,7 +9,7 @@ uses
|
||||
|
||||
wasm.types,
|
||||
wasm.parser,
|
||||
wasm.vm, wasm.test.binary,
|
||||
wasm.vm, wasm.test.binary.return42,
|
||||
wasm.types.stack
|
||||
{$IFDEF RUN_TESTS}
|
||||
, wasm.test
|
||||
@@ -30,7 +30,7 @@ begin
|
||||
wasm.vm.init();
|
||||
|
||||
writestringln('[main] Parsing WASM Binary');
|
||||
Context:= wasm.parser.parse(@wasm.test.binary.TEST_BINARY_1[0], puint8(@wasm.test.binary.TEST_BINARY_1[0] + $26));
|
||||
Context:= wasm.parser.parse(@wasm.test.binary.return42.BINARY[0], puint8(@wasm.test.binary.return42.BINARY[0] + wasm.test.binary.return42.BINARY_SIZE));
|
||||
|
||||
writestringln('[main] Running...');
|
||||
Context^.ExecutionState.Running:= true;
|
||||
|
||||
Reference in new issue
Block a user