Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
a722e51a568d7cbb65a183f1c5076c29408e18e7
hakorune/apps/tests/vm-plugin-smoke-filebox/main.hako

13 lines
358 B
Plaintext
Raw Normal View History

vm: stabilize plugin-first VM output + TLV decode\n\n- runtime(plugin_loader_v2): decode plugin TLV generically (tag 1/2/3/5/6/7/8/9)\n- vm(print): coerce plugin-backed results via semantics (i64/string) for consistent output\n- vm(plugin_invoke): add decode debug; align return handling\n- bin/lib: expose runner_plugin_init in bin; fix call sites to init plugin host\n- tools(build_aot.sh): disable legacy-forbid diag and toml env for object emit\n- add VM/JIT smoke scripts (counter, filebox, jit-compare)\n\nResult: VM plugin smokes PASS; jit-direct compare PASS. AOT emit still needs CLIF block init tweak.
2025-09-08 01:08:59 +09:00
// vm-plugin-smoke-filebox
// Purpose: Verify VM uses FileBox plugin to open/read a file.
// Script expects the test file to be created by the runner script.
local path = "tmp/vm_filebox_smoke.txt"
local f = new FileBox()
f.open(path, "r")
local s = f.read()
f.close()
// Return the length of read content to avoid printing large buffers
return s.length()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 60ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API