diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-11 21:24:29 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-09-11 21:24:29 -0400 |
commit | c7eb4bc853b47dd8573404298a1c67ca55e4b01d (patch) | |
tree | 0011b82c99a3cf69a766d0c3776937b9e83c396e /pts-core/functions/pts-init.php | |
parent | e7d9e6ee1540585adc36f24a9fbee92c3402301e (diff) | |
download | phoronix-test-suite-upstream-c7eb4bc853b47dd8573404298a1c67ca55e4b01d.tar.gz phoronix-test-suite-upstream-c7eb4bc853b47dd8573404298a1c67ca55e4b01d.tar.xz phoronix-test-suite-upstream-c7eb4bc853b47dd8573404298a1c67ca55e4b01d.zip |
pts-core: Add in base support for Self-Contained Test Profiles (SCTP)
Diffstat (limited to 'pts-core/functions/pts-init.php')
-rw-r--r-- | pts-core/functions/pts-init.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pts-core/functions/pts-init.php b/pts-core/functions/pts-init.php index 805d551..4f4c8c9 100644 --- a/pts-core/functions/pts-init.php +++ b/pts-core/functions/pts-init.php @@ -71,6 +71,15 @@ function pts_init() else define("IS_DEBUG_MODE", false); + // Self-Contained Test Profile + if(($sctp_file = getenv("SCTP_FILE")) != FALSE && is_file($sctp_file)) + { + define("SCTP_FILE", $sctp_file); + define("IS_SCTP_MODE", true); + } + else + define("IS_SCTP_MODE", false); + // Operating System Detection $supported_operating_systems = array("Linux", array("Solaris", "Sun"), "FreeBSD", "BSD"); $uname_s = strtolower(trim(shell_exec("uname -s"))); |