| 131 | } |
| 132 | |
| 133 | void WriteEchoPlugin(const std::string& path) { |
| 134 | fma_common::OutputFmaStream out(path, 0); |
| 135 | buil_python_extension("./echo.so", "echo"); |
| 136 | std::string code = ""; |
| 137 | read_code("./echo.so", code); |
| 138 | |
| 139 | out.Write(code.data(), code.size()); |
| 140 | out.Close(); |
| 141 | } |
| 142 | |
| 143 | void WriteSleepPlugin(const std::string& path) { |
| 144 | fma_common::OutputFmaStream out(path, 0); |