miou-solo5/test/run.t

47 lines
1.6 KiB
Perl

Tests some simple unikernels
$ solo5-hvt sleep.exe
| ___|
__| _ \ | _ \ __ \
\__ \ ( | | ( | ) |
____/\___/ _|\___/____/
Solo5: Bindings version v0.9.0
Solo5: Memory map: 512 MB addressable:
Solo5: reserved @ (0x0 - 0xfffff)
Solo5: text @ (0x100000 - 0x1bafff)
Solo5: rodata @ (0x1bb000 - 0x1eafff)
Solo5: data @ (0x1eb000 - 0x250fff)
Solo5: heap >= 0x251000 < stack < 0x20000000
Hello
World
Solo5: solo5_exit(0) called
$ solo5-hvt schedule.exe
| ___|
__| _ \ | _ \ __ \
\__ \ ( | | ( | ) |
____/\___/ _|\___/____/
Solo5: Bindings version v0.9.0
Solo5: Memory map: 512 MB addressable:
Solo5: reserved @ (0x0 - 0xfffff)
Solo5: text @ (0x100000 - 0x1bafff)
Solo5: rodata @ (0x1bb000 - 0x1eafff)
Solo5: data @ (0x1eb000 - 0x250fff)
Solo5: heap >= 0x251000 < stack < 0x20000000
Hello
World
Solo5: solo5_exit(0) called
$ chmod +w simple.txt
$ solo5-hvt-debug --block:simple=simple.txt --block-sector-size:simple=512 block.exe
| ___|
__| _ \ | _ \ __ \
\__ \ ( | | ( | ) |
____/\___/ _|\___/____/
Solo5: Bindings version v0.9.0
Solo5: Memory map: 512 MB addressable:
Solo5: reserved @ (0x0 - 0xfffff)
Solo5: text @ (0x100000 - 0x1c5fff)
Solo5: rodata @ (0x1c6000 - 0x1f7fff)
Solo5: data @ (0x1f8000 - 0x267fff)
Solo5: heap >= 0x268000 < stack < 0x20000000
00000000: 94a3b2375dd8aa75e3d2cdef54179909
00000200: 5e00b6c8f387deac083b9718e08a361b
Solo5: solo5_exit(0) called