diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-11 21:14:52 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-11 21:14:52 -0400 |
commit | afed524c1b7f58f4a1d3998d2f1759132f1a67e0 (patch) | |
tree | 4d30a912daaabae17f1117819a6d11687067d7eb /pts-core/functions/pts-init.php | |
parent | ae5983a86eae4b8eed0e75b52fa35f948b111b97 (diff) | |
download | phoronix-test-suite-upstream-afed524c1b7f58f4a1d3998d2f1759132f1a67e0.tar.gz phoronix-test-suite-upstream-afed524c1b7f58f4a1d3998d2f1759132f1a67e0.tar.xz phoronix-test-suite-upstream-afed524c1b7f58f4a1d3998d2f1759132f1a67e0.zip |
pts-core: Add support for having tests and suites stored locally within
~/.phoronix-test-suite/ as an option for users installing new
tests/suites or third-party files
Diffstat (limited to 'pts-core/functions/pts-init.php')
-rw-r--r-- | pts-core/functions/pts-init.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pts-core/functions/pts-init.php b/pts-core/functions/pts-init.php index 51ccd7e..805d551 100644 --- a/pts-core/functions/pts-init.php +++ b/pts-core/functions/pts-init.php @@ -108,11 +108,22 @@ function pts_init() function pts_extended_init() { // Extended Initalization Process + + // Create Other Directories if(!is_dir(PTS_DOWNLOAD_CACHE_DIR)) { @mkdir(PTS_DOWNLOAD_CACHE_DIR); @file_put_contents(PTS_DOWNLOAD_CACHE_DIR . "make-cache-howto", "A download cache is used for conserving time and bandwidth by eliminating the need for the Phoronix Test Suite to download files that have already been downloaded once. A download cache can also be transferred between PCs running the Phoronix Test Suite. For more information on this feature, view the included documentation. To generate a download cache, run:\n\nphoronix-test-suite make-download-cache\n"); } + if(!is_dir(XML_SUITE_LOCAL_DIR)) + @mkdir(XML_SUITE_LOCAL_DIR); + if(!is_dir(TEST_RESOURCE_LOCAL_DIR)) + @mkdir(TEST_RESOURCE_LOCAL_DIR); + if(!is_dir(XML_PROFILE_LOCAL_DIR)) + { + @mkdir(XML_PROFILE_LOCAL_DIR); + @file_put_contents(XML_PROFILE_LOCAL_DIR . "local-tests-howto", "If you wish to use a test profile for the Phoronix Test Suite without installing it system-wide, the XML profile(s) can be saved into this folder as <test-name.xml> and the test resources saved inside ~/.phoronix-test-suite/test-resources/<test-name>/"); + } // OpenGL / graphics detection $opengl_driver = opengl_version(); |