projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Sun 8/31/14 0:37

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Sun 8/31/14 0:37
Michael Larabel  
phodevi: Improvement to... 
Sun 8/31/14 0:02
Michael Larabel  
pts-core: Drop... 
Sat 8/30/14 23:40
Michael Larabel  
Should have bumped the... 
Sat 8/30/14 23:38
Michael Larabel  
phodevi: Support for... 
Fri 8/29/14 9:57
Michael Larabel  
pts-core: Don't set... 
Fri 8/29/14 7:54
Michael Larabel  
 
 
> --git a/pts-core/objects/phodevi/components/phodevi_system.php b/pts-core/objects/phodevi/components/phodevi_system.php
index 04d5070
..ad9b027 100644
--- a/pts-core/objects/phodevi/components/phodevi_system.php
+++ b/pts-core/objects/phodevi/components/phodevi_system.php
@@ -1189,15 +1189,36 @@ class phodevi_system extends phodevi_device_interface
     
}
     public static function 
sw_display_server()
     {
-        
$info null;
+        
$display_servers = array();

         if(
phodevi::is_windows())
         {
             
// TODO: determine what to do for Windows support
-            $info false;
         }
         else
         {
+            if(
pts_client::is_process_running('weston'))
+            {
+                
$info 'Wayland Weston';
+                
$vinfo trim(shell_exec('weston --version 2>&1'));
+
+                if(
pts_strings::last_in_string($vinfo) && pts_strings::is_version($vinfo))
+                {
+                    
$info .= ' ' pts_strings::last_in_string($vinfo);
+                }
+                    
array_push($display_servers$info);
+            }
+            if(
pts_client::is_process_running('unity-system-compositor'))
+            {
+                
$unity_system_comp trim(str_replace('unity-system-compositor'nullshell_exec('unity-system-compositor --version 2>&1')));
+
+                if(
pts_strings::is_version($unity_system_comp))
+                {
+                    
array_push($display_servers'Unity-System-Compositor ' $unity_system_comp);
+                }
+
+            }
+
             if((
$x_bin pts_client::executable_in_path('Xorg')) || ($x_bin pts_client::executable_in_path('X')))
             {
                 
// Find graphics subsystem version
@@ -1220,37 +1241,16 @@ class phodevi_system extends phodevi_device_interface

                 
if($info != null)
                 {
-                    
$info 'X Server ' $info;
+                    
array_push($display_servers'X Server ' $info);
                 }
             }
-            else if(
pts_client::is_process_running('weston'))
+            if(
pts_client::is_process_running('surfaceflinger'))
             {
-                
$info 'Wayland Weston';
-                
$vinfo trim(shell_exec('weston --version 2>&1'));
-
-                if(
pts_strings::last_in_string($vinfo))
-                {
-                    
$info .= ' ' pts_strings::last_in_string($vinfo);
-                }
-            }
-            else if(
pts_client::is_process_running('surfaceflinger'))
-            {
-                
$info 'SurfaceFlinger';
-            }
-
-            if(
pts_client::is_process_running('unity-system-compositor'))
-            {
-                
$unity_system_comp trim(str_replace('unity-system-compositor'nullshell_exec('unity-system-compositor --version 2>&1')));
-
-                if(
pts_strings::is_version($unity_system_comp))
-                {
-                    
$info 'Unity-System-Compositor ' $unity_system_comp . ($info != null ' + ' $info null);
-                }
-
+                
array_push($display_servers'SurfaceFlinger');
             }
         }

-        return 
$info;
+        return 
implode(' + '$display_servers);
     }
     public static function 
sw_display_driver($with_version true)
     {
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media