MDL-39854 reimplement Frankenstyle support and enable classloader

Better performance, more reliable, completely self contained,
more validation and full backwards compatibility.

This will also allow us to implement ignoring of plugins.
This commit is contained in:
Petr Škoda
2013-06-07 18:15:28 +02:00
parent 3d164e1ef4
commit 9e19a0f08b
16 changed files with 1287 additions and 518 deletions

View File

@@ -93,7 +93,7 @@ class tests_finder {
$subsystemswithtests = array();
$subsystems = get_core_subsystems();
$subsystems = core_component::get_core_subsystems();
// Hack the list a bit to cover some well-known ones
$subsystems['backup'] = 'backup';
@@ -101,11 +101,10 @@ class tests_finder {
$subsystems['db-ddl'] = 'lib/ddl';
ksort($subsystems);
foreach ($subsystems as $subsys => $relsubsys) {
if ($relsubsys === null) {
foreach ($subsystems as $subsys => $fullsubsys) {
if ($fullsubsys === null) {
continue;
}
$fullsubsys = $CFG->dirroot . '/' . $relsubsys;
if (!is_dir($fullsubsys)) {
continue;
}