Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 74385ec..8303a31 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -30,6 +30,7 @@ Phoronix Test Suite (Git)
- pts-core: Alias CC=gcc if gcc is present and cc is not
- pts-core: Always save test log files, make them easily accessible from the PTS Results Viewer
- pts-core: Add TEST_COUNT_PASS graph type for ResultFormat
+- pts-core: When running on BSD, detect if Linux compatibility support is loaded and then allow Linux-supported test profiles to run
- phodevi: Split out phodevi_parser module into phodevi_linux_parser, phodevi_osx_parser, and phodevi_solaris_parser for OS-specific functions
- phodevi: Avoid situations of the manufacturer/vendor string being repeated in the motherboard property
- phodevi: Add device notes and special settings string functionality to API
diff --git a/pts-core/library/pts-functions_tests.php b/pts-core/library/pts-functions_tests.php
index 9d2e3a3..57b4be9 100644
--- a/pts-core/library/pts-functions_tests.php
+++ b/pts-core/library/pts-functions_tests.php
@@ -607,7 +607,16 @@ function pts_test_platform_supported($identifier)
if(!in_array(OPERATING_SYSTEM, $platforms))
{
- $supported = false;
+ if(IS_BSD && strpos(shell_exec("kldstat -n linux 2>&1"), "linux.ko") != false && in_array("Linux", $platforms))
+ {
+ // The OS is BSD but there is Linux API/ABI compatibility support loaded
+ $supported = true;
+
+ }
+ else
+ {
+ $supported = false;
+ }
}
}
}
<
Copyright © 2013 by Phoronix Media