blob: 93a2dabc4cae3b8a205d99c285b99b5c1d9424b0 [file] [log] [blame]
import core.runtime, core.sys.posix.dlfcn;
extern(C) alias RunTests = int function();
extern(C) int runDepTests(const char* name)
{
auto h = rt_loadLibrary(name);
if (h is null) return false;
auto runTests = cast(RunTests).dlsym(h, "runTests");
assert(runTests !is null);
if (!runTests()) return false;
return rt_unloadLibrary(h);
}