(server)
| 1145 | # Server must use popen so it doesn't inherit the current process state. It |
| 1146 | # will crash otherwise. |
| 1147 | def check_remote(server): |
| 1148 | remote = rpc.connect(server.host, server.port, session_timeout=10) |
| 1149 | |
| 1150 | # Upload the serialized Executable. |
| 1151 | remote.upload(path) |
| 1152 | # Get a handle to remote Executable. |
| 1153 | rexec = remote.load_module("vm_library.so") |
| 1154 | |
| 1155 | device = remote.cpu() |
| 1156 | # Build a VM out of the executable and context. |
| 1157 | vm = relax.VirtualMachine(rexec, device=device) |
| 1158 | trial_func(vm, device) |
| 1159 | |
| 1160 | check_remote(rpc.Server("127.0.0.1")) |
| 1161 |
no test coverage detected
searching dependent graphs…