mirror of https://github.com/BOINC/boinc.git
got test_1sec working by getting rid of uc workunit time
svn path=/trunk/boinc/; revision=1587
This commit is contained in:
parent
b317dfb924
commit
c559aa4d86
|
@ -5014,7 +5014,7 @@ Karl 2003/06/23
|
||||||
util.C
|
util.C
|
||||||
util.h
|
util.h
|
||||||
|
|
||||||
Karl 2003/06/23
|
Karl 2003/06/23
|
||||||
- removed stderr messages on detach_project() after user adds a URL that
|
- removed stderr messages on detach_project() after user adds a URL that
|
||||||
doesn't work
|
doesn't work
|
||||||
|
|
||||||
|
@ -5032,3 +5032,13 @@ John Brian 2003/06/24
|
||||||
resource.rc
|
resource.rc
|
||||||
resource.h
|
resource.h
|
||||||
|
|
||||||
|
Karl 2003/06/23
|
||||||
|
- Got test_1sec working
|
||||||
|
|
||||||
|
test/
|
||||||
|
boinc.py
|
||||||
|
test.inc
|
||||||
|
test_backend.py
|
||||||
|
test_uc.py
|
||||||
|
sched/
|
||||||
|
start_servers.C
|
||||||
|
|
|
@ -287,6 +287,7 @@ class Project:
|
||||||
add_to_list=True):
|
add_to_list=True):
|
||||||
if add_to_list:
|
if add_to_list:
|
||||||
all_projects.append(self)
|
all_projects.append(self)
|
||||||
|
self.configlines = []
|
||||||
self.short_name = short_name or 'test_'+appname
|
self.short_name = short_name or 'test_'+appname
|
||||||
self.long_name = long_name or 'Project ' + self.short_name.replace('_',' ').capitalize()
|
self.long_name = long_name or 'Project ' + self.short_name.replace('_',' ').capitalize()
|
||||||
self.db_passwd = ''
|
self.db_passwd = ''
|
||||||
|
@ -638,7 +639,6 @@ class Project:
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
configlines = []
|
|
||||||
def append_config(self, line):
|
def append_config(self, line):
|
||||||
self.configlines += line.split('\n')
|
self.configlines += line.split('\n')
|
||||||
self.write_config()
|
self.write_config()
|
||||||
|
@ -843,6 +843,8 @@ def run_check_all():
|
||||||
'''Run all projects, run all hosts, check all projects, stop all projects.'''
|
'''Run all projects, run all hosts, check all projects, stop all projects.'''
|
||||||
all_projects.run()
|
all_projects.run()
|
||||||
all_projects.open_dbs() # for progress meter
|
all_projects.open_dbs() # for progress meter
|
||||||
|
if os.environ.get('TEST_STOP_BEFORE_HOST_RUN'):
|
||||||
|
raise SystemExit, 'Stopped due to $TEST_STOP_BEFORE_HOST_RUN'
|
||||||
rm = ResultMeter(all_projects.progress)
|
rm = ResultMeter(all_projects.progress)
|
||||||
all_hosts.run()
|
all_hosts.run()
|
||||||
rm.stop()
|
rm.stop()
|
||||||
|
@ -868,6 +870,7 @@ def stop_proxy():
|
||||||
os.kill(2, proxy_pid)
|
os.kill(2, proxy_pid)
|
||||||
|
|
||||||
def test_msg(msg):
|
def test_msg(msg):
|
||||||
|
print
|
||||||
print "-- Testing", msg, '-'*(66-len(msg))
|
print "-- Testing", msg, '-'*(66-len(msg))
|
||||||
|
|
||||||
def test_done():
|
def test_done():
|
||||||
|
|
|
@ -178,6 +178,7 @@ function account_file_name($url) {
|
||||||
$x = $url;
|
$x = $url;
|
||||||
}
|
}
|
||||||
$encoded_name = strtr($x, "/", "_");
|
$encoded_name = strtr($x, "/", "_");
|
||||||
|
$encoded_name = substr($encoded_name, 0,strlen($encoded_name)-1);
|
||||||
return "account_".$encoded_name.".xml";
|
return "account_".$encoded_name.".xml";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -477,7 +478,7 @@ class Project {
|
||||||
$this->copy('html_user/*.html' , 'html_user/');
|
$this->copy('html_user/*.html' , 'html_user/');
|
||||||
$this->copy('html_ops/*.php' , 'html_ops/');
|
$this->copy('html_ops/*.php' , 'html_ops/');
|
||||||
$this->copy('html_ops/*.inc' , 'html_ops/');
|
$this->copy('html_ops/*.inc' , 'html_ops/');
|
||||||
$this->copy('html_ops/*.html' , 'html_ops/');
|
// $this->copy('html_ops/*.html' , 'html_ops/');
|
||||||
$this->copy('tools/country_select' , 'html_user/');
|
$this->copy('tools/country_select' , 'html_user/');
|
||||||
if ($this->project_php_file) {
|
if ($this->project_php_file) {
|
||||||
$this->copy('html_user/$this->project_php_file', 'html_user/project.inc');
|
$this->copy('html_user/$this->project_php_file', 'html_user/project.inc');
|
||||||
|
|
|
@ -53,6 +53,7 @@ class ProjectBackend(ProjectUC):
|
||||||
self.check_results(self.num, ResultUC())
|
self.check_results(self.num, ResultUC())
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test_msg("entire backend");
|
num = sys.argv[1:] and get_int(sys.argv[1]) or 100
|
||||||
ProjectBackend(sys.argv[1:] and get_int(sys.argv[1]) or 100)
|
test_msg("entire backend (with %d results)" % num);
|
||||||
|
ProjectBackend(num)
|
||||||
run_check_all()
|
run_check_all()
|
||||||
|
|
|
@ -28,10 +28,13 @@ class WorkUC(Work):
|
||||||
self.redundancy = redundancy
|
self.redundancy = redundancy
|
||||||
self.delay_bound = 5*redundancy
|
self.delay_bound = 5*redundancy
|
||||||
self.input_files = ['input']
|
self.input_files = ['input']
|
||||||
# Say that 1 WU takes 1 day on a ref comp
|
# # Say that 1 WU takes 1 day on a ref comp
|
||||||
self.rsc_fpops = 86400*1e9/2
|
# - note: for test_1sec these values are too high so if you want to
|
||||||
self.rsc_iops = 86400*1e9/2
|
# add these back, make them smaller of make test_1sec
|
||||||
self.rsc_disk = 10e8
|
# request more work
|
||||||
|
# self.rsc_fpops = 86400*1e9/2
|
||||||
|
# self.rsc_iops = 86400*1e9/2
|
||||||
|
# self.rsc_disk = 10e8
|
||||||
|
|
||||||
class ResultUC:
|
class ResultUC:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
Loading…
Reference in New Issue