Excerpts from the main testsuite.in:
test_do([[ // This is a memleak test rm("testsuite_test.pike"); Stdio.write_file("testsuite_test.pike", "constant Q=10000000000000000;\n" "int main() {}\n"); Process.system(RUNPIKE +" testsuite_test.pike"); rm("testsuite_test.pike"); ]])
test_any([[object p=Process.create_process(Process.split_quoted_string(RUNPIKE)+({"-e","exit(2)"})); sleep(10); return p->wait()]],2)
/ Henrik Grubbström (Lysator)
Previous text:
2003-04-15 11:16: Subject: Starting new pike processes from the testsuite
What's the recommended way of starting separate processes (which are Pike programs) from the testsuite?
I want to make a test case for the SSL code, by starting a https process using the SSL.pmod/https.pike program (which I'm not sure it really belongs in the module tree) or some similar code, and then use the client code in the url/http modules to connect to it.
/ Niels Möller (ny flexiblare bröstkorg)