From a63806afe1626fcf9e6b51d438a89b8e7f0ad582 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Thu, 20 Jun 2002 23:27:37 +0000 Subject: [PATCH] Updated test files to support multiple platforms when testing. svn path=/trunk/boinc/; revision=117 --- test/init.inc | 8 ++++++-- test/test_concat.php | 2 +- test/test_uc.php | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/init.inc b/test/init.inc index 9a03b6569c..d46bc81f35 100644 --- a/test/init.inc +++ b/test/init.inc @@ -108,10 +108,14 @@ function add_prefs($file) { PassThru("../tools/add prefs -email_addr $BOINC_EMAIL -prefs_file $file"); } -function add_platform() { +function add_platform($platform) { global $BOINC_PLATFORM; - PassThru("../tools/add platform -platform_name $BOINC_PLATFORM"); + if( $platform ) { + PassThru("../tools/add platform -platform_name $platform"); + } else { + PassThru("../tools/add platform -platform_name $BOINC_PLATFORM"); + } } function add_core_client_message($message, $priority) { diff --git a/test/test_concat.php b/test/test_concat.php index 9441993d76..9c8bdaa216 100644 --- a/test/test_concat.php +++ b/test/test_concat.php @@ -11,7 +11,7 @@ clear_data_dirs(); init_client_dirs("account1.xml"); copy_to_download_dir("input"); - add_platform(); + add_platform(null); add_core_client(); add_user(null); add_app("concat"); diff --git a/test/test_uc.php b/test/test_uc.php index 4829c3239c..c986635b7d 100644 --- a/test/test_uc.php +++ b/test/test_uc.php @@ -11,7 +11,7 @@ clear_data_dirs(); init_client_dirs("account1.xml"); copy_to_download_dir("input"); - add_platform(); + add_platform(null); add_user(null); add_app("upper_case"); create_work("-appname upper_case -wu_name uc_wu -wu_template uc_wu -result_template uc_result -nresults 2 input input");