diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-29 20:54:57 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-29 20:54:57 -0400 |
commit | 5756d98e0198f8f22cb91b6f668ec90ce33ffbe8 (patch) | |
tree | d86c6a16ebabf246814a025588de509ad5a14480 /pts-core/functions/pts-functions_tests.php | |
parent | 5571243e4a8e0b306a2935ef53fc92944e5832d3 (diff) | |
download | phoronix-test-suite-upstream-5756d98e0198f8f22cb91b6f668ec90ce33ffbe8.tar.gz phoronix-test-suite-upstream-5756d98e0198f8f22cb91b6f668ec90ce33ffbe8.tar.xz phoronix-test-suite-upstream-5756d98e0198f8f22cb91b6f668ec90ce33ffbe8.zip |
pts-core: Add pts_installed_tests_array()
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r-- | pts-core/functions/pts-functions_tests.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php index 261edd2..9d505a6 100644 --- a/pts-core/functions/pts-functions_tests.php +++ b/pts-core/functions/pts-functions_tests.php @@ -271,6 +271,18 @@ function pts_available_tests_array() return $tests; } +function pts_installed_tests_array() +{ + $tests = glob(TEST_ENV_DIR . "*/pts-install.xml"); + + for($i = 0; $i < count($tests); $i++) + { + $install_file_arr = explode("/", $tests[$i]); + $tests[$i] = $install_file_arr[count($install_file_arr) - 2]; + } + + return $tests; +} function pts_available_suites_array() { $suites = glob(XML_SUITE_DIR . "*.xml"); |