All pastes #2047311 Raw Edit

Mine

public text v1 · immutable
#2047311 ·published 2011-04-17 00:23 UTC
rendered paste body
diff -Naur phoronix-test-suite.orig//pts-core/commands/interactive.php phoronix-test-suite/pts-core/commands/interactive.php
--- phoronix-test-suite.orig//pts-core/commands/interactive.php	2011-04-17 00:00:29.000000000 +0000
+++ phoronix-test-suite/pts-core/commands/interactive.php	2011-04-17 00:20:59.573450962 +0000
@@ -27,6 +27,7 @@
 
 	public static function run($r)
 	{
+		pts_openbenchmarking_client::refresh_repository_lists();
 		pts_client::$display->generic_heading('Interactive Benchmarking');
 		$reboot_on_exit = pts_bypass::is_live_cd() && pts_client::user_home_directory() == '/root/';
 
@@ -60,6 +61,12 @@
 					break;
 				case 'RUN_SUITE':
 					$possible_suites = pts_openbenchmarking_client::available_suites();
+
+					foreach(array_map('strtolower', pts_types::subsystem_targets()) as $subsystem)
+					{
+						array_push($possible_suites, 'pts/' . $subsystem);
+					}
+
 					$suites_to_run = pts_user_io::prompt_text_menu('Select Suite', $possible_suites, true);
 					foreach(explode(',', $suites_to_run) as $suite_to_run)
 					{
diff -Naur phoronix-test-suite.orig//pts-core/objects/pts_openbenchmarking_client.php phoronix-test-suite/pts-core/objects/pts_openbenchmarking_client.php
--- phoronix-test-suite.orig//pts-core/objects/pts_openbenchmarking_client.php	2011-04-17 00:00:29.000000000 +0000
+++ phoronix-test-suite/pts-core/objects/pts_openbenchmarking_client.php	2011-04-17 00:16:47.143450759 +0000
@@ -484,6 +484,15 @@
 			{
 				foreach(array_keys($repo_index['tests']) as $identifier)
 				{
+					if(defined('NO_NETWORK_COMMUNICATION') && NO_NETWORK_COMMUNICATION)
+					{
+						$version = array_shift($repo_index['tests'][$identifier]['versions']);
+						if(self::download_test_profile($repo . '/' . $identifier . '-' . $version) == false)
+						{
+							continue;
+						}
+					}
+
 					array_push($available_tests, $repo . '/' . $identifier);
 				}
 			}
@@ -503,6 +512,14 @@
 			{
 				foreach(array_keys($repo_index['suites']) as $identifier)
 				{
+					if(defined('NO_NETWORK_COMMUNICATION') && NO_NETWORK_COMMUNICATION)
+					{
+						$version = array_shift($repo_index['suites'][$identifier]['versions']);
+						if(self::download_test_suite($repo . '/' . $identifier . '-' . $version) == false)
+						{
+							continue;
+						}
+					}
 					array_push($available_suites, $repo . '/' . $identifier);
 				}
 			}