Browse Source

Move up general tests

# if MFH is needed should be decided by QA team: because the output # sequence changes
experimental/threaded
Marcus Boerger 24 years ago
parent
commit
c7dc6c0e00
  1. 6
      run-tests.php

6
run-tests.php

@ -236,12 +236,12 @@ function find_files($dir,$is_ext_dir=FALSE,$ignore=FALSE)
function test_sort($a, $b) {
global $cwd;
$ta = strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0;
$tb = strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0;
$ta = strpos($a, "{$cwd}/tests")===0 ? 1 + (strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0;
$tb = strpos($b, "{$cwd}/tests")===0 ? 1 + (strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0;
if ($ta == $tb) {
return strcmp($a, $b);
} else {
return $ta ? -1 : +1;
return $tb - $ta;
}
}

Loading…
Cancel
Save