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

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 2/3/10 13:04
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:38
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:27
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 9:26
Michael Larabel  
pts: Drop MD5 hashes in... 
Tue 2/2/10 23:43
Michael Larabel  
phoromatic: Add... 
Tue 2/2/10 23:35
Michael Larabel  
pts-core: Phoromatic... 
 
> --git a/pts-core/library/pts-functions_vars.php b/pts-core/library/pts-functions_vars.php
index 6c4c988
..1f02870 100644
--- a/pts-core/library/pts-functions_vars.php
+++ b/pts-core/library/pts-functions_vars.php
@@ -47,+47,@@ function pts_env_variables()
         
"OS_ARCH" => phodevi::read_property("system""kernel-architecture"),
         
"OS_TYPE" => OPERATING_SYSTEM,
         
"THIS_RUN_TIME" => PTS_INIT_TIME,
-        
"DEBUG_REAL_HOME" => getenv("HOME") . "/"
+        "DEBUG_REAL_HOME" => pts_user_home()
         );
     }

diff --git a/pts-core/library/pts.php b/pts-core/library/pts.php
index a40a518
..ce4e3ad 100644
--- a/pts-core/library/pts.php
+++ b/pts-core/library/pts.php
@@ -31,+31,@@ function pts_codename($full_string false)

     return (
$full_string "PhoronixTestSuite/" "") . $codename;
 }
+function 
pts_title($show_both false)
+{
+    return 
"Phoronix Test Suite" . (PTS_VERSION != null " v" PTS_VERSION null) . (PTS_CODENAME != null && (PTS_VERSION == null || $show_both ) ? " (" ucwords(strtolower(PTS_CODENAME)) . ")" null);
+}

 
?>
diff --git a/pts-core/modules/gui_gtk_events.php b/pts-core/modules/gui_gtk_events.php
index 2d987a9..8712fe7 100644
--- a/pts-core/modules/gui_gtk_events.php
+++ b/pts-core/modules/gui_gtk_events.php
@@ -109,7 +109,7 @@ class gui_gtk_events extends pts_module_interface
         self::$test_run_pos = 0;
         self::$test_run_count = count(self::$tests_remaining_to_run);

-        self::$progress_window = new pts_gtk_advanced_progress_window("Phoronix Test Suite v" . PTS_VERSION);
+        self::$progress_window = new pts_gtk_advanced_progress_window(pts_title());
         self::$progress_window->update_progress_bar(0, " ", 0, " ");
     }
     public static function __pre_test_run($pts_test_result)
diff --git a/pts-core/objects/pts_pdf_template.php b/pts-core/objects/pts_pdf_template.php
index 1740f74..fea1d54 100644
--- a/pts-core/objects/pts_pdf_template.php
+++ b/pts-core/objects/pts_pdf_template.php
@@ -67,7 +67,7 @@ class pts_pdf_template extends FPDF

         $this->SetY(-10);
         $this->SetFont("Arial", "B", 7);
-        $this->Cell(0, 0, "Phoronix Test Suite v" . PTS_VERSION, 0, 0, "L");
+        $this->Cell(0, 0, pts_title(), 0, 0, "L");
         $this->Cell(0, 0, "www.phoronix-test-suite.com", 0, 0, "R");
     }
     function WriteBigHeaderCenter($Header)
diff --git a/pts-core/objects/pts_ps_template.php b/pts-core/objects/pts_ps_template.php
index 2309a2f..019fca6 100644
--- a/pts-core/objects/pts_ps_template.php
+++ b/pts-core/objects/pts_ps_template.php
@@ -163,7 +163,7 @@ class pts_ps_template

         $this->SetY(-10);
         $this->SetFont("Arial", "B", 7);
-        $this->Cell(0, 0, "Phoronix Test Suite v" . PTS_VERSION, 0, 0, "L");
+        $this->Cell(0, 0, pts_title(), 0, 0, "L");
         $this->Cell(0, 0, "www.phoronix-test-suite.com", 0, 0, "R");
     }
     function WriteBigHeaderCenter($Header)
diff --git a/pts-core/options/core_version.php b/pts-core/options/core_version.php
index def64bf..5dced6c 100644
--- a/pts-core/options/core_version.php
+++ b/pts-core/options/core_version.php
@@ -3,8 +3,8 @@
 /*
     Phoronix Test Suite
     URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
-    Copyright (C) 2008, Phoronix Media
-    Copyright (C) 2008, Michael Larabel
+    Copyright (C) 2008 - 2009, Phoronix Media
+    Copyright (C) 2008 - 2009, Michael Larabel

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ class core_version implements pts_option_interface
 {
     public static function run($r)
     {
-        echo "\nPhoronix Test Suite v" . PTS_VERSION . " (" . PTS_CODENAME . ")\n\n";
+        echo "\n" . pts_title(true) . "\n\n";
     }
 }

diff --git a/pts-core/options/diagnostics.php b/pts-core/options/diagnostics.php
index 6dd92db..35d1553 100644
--- a/pts-core/options/diagnostics.php
+++ b/pts-core/options/diagnostics.php
@@ -3,8 +3,8 @@
 /*
     Phoronix Test Suite
     URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
-    Copyright (C) 2008, Phoronix Media
-    Copyright (C) 2008, Michael Larabel
+    Copyright (C) 2008 - 2009, Phoronix Media
+    Copyright (C) 2008 - 2009, Michael Larabel

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ class diagnostics implements pts_option_interface
 {
     public static function run($r)
     {
-        echo pts_string_header("Phoronix Test Suite v" . PTS_VERSION . " (" . PTS_CODENAME . ")\n" . "Diagnostics Dump");
+        echo pts_string_header(pts_title() . "\n" . "Diagnostics Dump");
         $pts_defined_constants = get_defined_constants(true);
         foreach($pts_defined_constants["user"] as $constant => $constant_value)
         {
diff --git a/pts-core/options/gui_gtk.php b/pts-core/options/gui_gtk.php
index c0df814..ab43bb0 100644
--- a/pts-core/options/gui_gtk.php
+++ b/pts-core/options/gui_gtk.php
@@ -55,7 +55,7 @@ class gui_gtk implements pts_option_interface
         {
             $system_tray = new GtkStatusIcon();
             $system_tray->set_from_file(STATIC_DIR . "images/pts-icon.png");
-            $system_tray->set_tooltip("Phoronix Test Suite v" . PTS_VERSION);
+            $system_tray->set_tooltip(pts_title());
             $system_tray->connect("activate", array("gui_gtk", "system_tray_activate"));
             $system_tray->connect("popup-menu", array("gui_gtk", "system_tray_menu"));
         }
@@ -136,7 +136,7 @@ class gui_gtk implements pts_option_interface
     }
     public static function show_main_interface()
     {
-        $window = new pts_gtk_window("Phoronix Test Suite v" . PTS_VERSION);
+        $window = new pts_gtk_window(pts_title());
         $window->drag_dest_set(Gtk::DEST_DEFAULT_ALL, array(array("text/uri-list", 0, 0)), Gdk::ACTION_COPY);
         $window->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
         $window->connect("drag-data-received", array("gui_gtk", "drag_drop_item"), $window);
@@ -1390,7 +1390,7 @@ class gui_gtk implements pts_option_interface
         $logo = GtkImage::new_from_file(RESULTS_VIEWER_DIR . "pts-logo.png");
         $logo->set_size_request(158, 82);

-        $label_version = new GtkLabel("Version " . PTS_VERSION);
+        $label_version = $label_version != null ? new GtkLabel("Version " . PTS_VERSION) : null;

         $event_box = new GtkEventBox();
         $label_url = new GtkLabel("www.phoronix-test-suite.com");
diff --git a/pts-core/options/system_info.php b/pts-core/options/system_info.php
index 8acd26d..0832dcf 100644
--- a/pts-core/options/system_info.php
+++ b/pts-core/options/system_info.php
@@ -3,8 +3,8 @@
 /*
     Phoronix Test Suite
     URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
-    Copyright (C) 2008, Phoronix Media
-    Copyright (C) 2008, Michael Larabel
+    Copyright (C) 2008 - 2009, Phoronix Media
+    Copyright (C) 2008 - 2009, Michael Larabel

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ class system_info implements pts_option_interface
 {
     public static function run($r)
     {
-        echo pts_string_header("Phoronix Test Suite v" . PTS_VERSION . " (" . PTS_CODENAME . ")\nSystem Information");
+        echo pts_string_header(pts_title(true) . "\nSystem Information");
         echo "Hardware:\n" . pts_hw_string() . "\n\n";
         echo "Software:\n" . pts_sw_string() . "\n\n";
&nb
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media