author | smolkas |
Wed, 28 Nov 2012 12:25:43 +0100 | |
changeset 50265 | 9eafa567e061 |
parent 49814 | 0aaed83532e1 |
child 50593 | 8372c8b59cea |
permissions | -rw-r--r-- |
41542 | 1 |
""" |
2 |
Test configuration descriptions for mira. |
|
3 |
""" |
|
4 |
||
5 |
import os |
|
6 |
from os import path |
|
7 |
from glob import glob |
|
8 |
import subprocess |
|
42392 | 9 |
from datetime import datetime |
41542 | 10 |
import re |
11 |
||
12 |
import util |
|
13 |
||
42823 | 14 |
from mira import schedule, misc |
42192 | 15 |
from mira.environment import scheduler |
46931 | 16 |
from mira import repositories |
42192 | 17 |
|
41542 | 18 |
# build and evaluation tools |
19 |
||
42821
4629cbaebc04
clarified handling of ISABELLE_USEDIR_OPTIONS in mira
krauss
parents:
42472
diff
changeset
|
20 |
def prepare_isabelle_repository(loc_isabelle, loc_contrib, loc_dependency_heaps, |
48783 | 21 |
usedir_options='', more_settings=''): |
42821
4629cbaebc04
clarified handling of ISABELLE_USEDIR_OPTIONS in mira
krauss
parents:
42472
diff
changeset
|
22 |
|
4629cbaebc04
clarified handling of ISABELLE_USEDIR_OPTIONS in mira
krauss
parents:
42472
diff
changeset
|
23 |
# prepare components |
41542 | 24 |
loc_contrib = path.expanduser(loc_contrib) |
25 |
if not path.exists(loc_contrib): |
|
26 |
raise IOError('Bad file: %s' % loc_contrib) |
|
27 |
subprocess.check_call(['ln', '-s', loc_contrib, '%s/contrib' % loc_isabelle]) |
|
28 |
||
42821
4629cbaebc04
clarified handling of ISABELLE_USEDIR_OPTIONS in mira
krauss
parents:
42472
diff
changeset
|
29 |
# patch settings |
41542 | 30 |
extra_settings = ''' |
31 |
ISABELLE_HOME_USER="$ISABELLE_HOME/home_user" |
|
48785
1e384f729045
restored ISABELLE_OUTPUT etc -- still relevant at least for mira.py itself
krauss
parents:
48783
diff
changeset
|
32 |
ISABELLE_OUTPUT="$ISABELLE_HOME/heaps" |
1e384f729045
restored ISABELLE_OUTPUT etc -- still relevant at least for mira.py itself
krauss
parents:
48783
diff
changeset
|
33 |
ISABELLE_BROWSER_INFO="$ISABELLE_HOME/browser_info" |
1e384f729045
restored ISABELLE_OUTPUT etc -- still relevant at least for mira.py itself
krauss
parents:
48783
diff
changeset
|
34 |
ISABELLE_PATH="$ISABELLE_OUTPUT" |
1e384f729045
restored ISABELLE_OUTPUT etc -- still relevant at least for mira.py itself
krauss
parents:
48783
diff
changeset
|
35 |
|
42109 | 36 |
Z3_NON_COMMERCIAL="yes" |
48785
1e384f729045
restored ISABELLE_OUTPUT etc -- still relevant at least for mira.py itself
krauss
parents:
48783
diff
changeset
|
37 |
|
48848
ae7429d66b1e
updated to new init_components, hoping that mira can digest that;
wenzelm
parents:
48785
diff
changeset
|
38 |
init_components "$COMPONENT/contrib" "$ISABELLE_HOME/Admin/components/main" |
ae7429d66b1e
updated to new init_components, hoping that mira can digest that;
wenzelm
parents:
48785
diff
changeset
|
39 |
init_components "$COMPONENT/contrib" "$ISABELLE_HOME/Admin/components/optional" |
ae7429d66b1e
updated to new init_components, hoping that mira can digest that;
wenzelm
parents:
48785
diff
changeset
|
40 |
init_components "$COMPONENT/contrib" "$ISABELLE_HOME/Admin/components/nonfree" |
48182 | 41 |
|
48783 | 42 |
''' + more_settings |
41542 | 43 |
|
44 |
writer = open(path.join(loc_isabelle, 'etc', 'settings'), 'a') |
|
45 |
writer.write(extra_settings) |
|
46 |
writer.close() |
|
47 |
||
48 |
||
45164 | 49 |
def isabelle_getenv(isabelle_home, var): |
50 |
||
51 |
_, out = env.run_process('%s/bin/isabelle' % isabelle_home, 'getenv', var) |
|
52 |
return out.split('=', 1)[1].strip() |
|
53 |
||
54 |
||
41542 | 55 |
def extract_isabelle_run_timing(logdata): |
56 |
||
57 |
def to_secs(h, m, s): |
|
58 |
return (int(h) * 60 + int(m)) * 60 + int(s) |
|
59 |
pat = r'Finished (\S+) \((\d+):(\d+):(\d+) elapsed time, (\d+):(\d+):(\d+) cpu time' |
|
42186
bb688200b949
adapted parsing of session timing (cf. e86b10c68f0b)
krauss
parents:
42140
diff
changeset
|
60 |
pat2 = r'Timing (\S+) \((\d+) threads, (\d+\.\d+)s elapsed time, (\d+\.\d+)s cpu time, (\d+\.\d+)s GC time, factor (\d+\.\d+)\)' |
41542 | 61 |
t = dict((name, {'elapsed': to_secs(eh,em,es), 'cpu': to_secs(ch,cm,cs)}) |
62 |
for name, eh, em, es, ch, cm, cs in re.findall(pat, logdata)) |
|
42186
bb688200b949
adapted parsing of session timing (cf. e86b10c68f0b)
krauss
parents:
42140
diff
changeset
|
63 |
for name, threads, elapsed, cpu, gc, factor in re.findall(pat2, logdata): |
41542 | 64 |
|
65 |
if name not in t: |
|
66 |
t[name] = {} |
|
67 |
||
68 |
t[name]['threads'] = int(threads) |
|
69 |
t[name]['elapsed_inner'] = elapsed |
|
70 |
t[name]['cpu_inner'] = cpu |
|
71 |
t[name]['gc'] = gc |
|
42186
bb688200b949
adapted parsing of session timing (cf. e86b10c68f0b)
krauss
parents:
42140
diff
changeset
|
72 |
t[name]['factor'] = factor |
41542 | 73 |
|
74 |
return t |
|
75 |
||
76 |
||
77 |
def extract_isabelle_run_summary(logdata): |
|
78 |
||
41894 | 79 |
re_error = re.compile(r'^(?:make: )?\*\*\* (.*)$', re.MULTILINE) |
41542 | 80 |
summary = '\n'.join(re_error.findall(logdata)) |
81 |
if summary == '': |
|
82 |
summary = 'ok' |
|
83 |
||
84 |
return summary |
|
85 |
||
86 |
||
45164 | 87 |
def extract_image_size(isabelle_home): |
88 |
||
89 |
isabelle_output = isabelle_getenv(isabelle_home, 'ISABELLE_OUTPUT') |
|
90 |
return dict((p, path.getsize(path.join(isabelle_output, p))) for p in os.listdir(isabelle_output) if p != "log") |
|
91 |
||
92 |
def extract_report_data(isabelle_home, logdata): |
|
93 |
||
94 |
return { |
|
95 |
'timing': extract_isabelle_run_timing(logdata), |
|
96 |
'image_size': extract_image_size(isabelle_home) } |
|
97 |
||
98 |
||
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
99 |
def isabelle_build(env, case, paths, dep_paths, playground, *cmdargs, **kwargs): |
41542 | 100 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
101 |
more_settings=kwargs.get('more_settings', '') |
49175
eab51f249c70
option for discarding build results, enabled in particular for Isabelle_makeall
krauss
parents:
48848
diff
changeset
|
102 |
keep_results=kwargs.get('keep_results', True) |
41542 | 103 |
|
42114 | 104 |
isabelle_home = paths[0] |
41542 | 105 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
106 |
# copy over build results from dependencies |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
107 |
heap_dir = path.join(isabelle_home, 'heaps') |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
108 |
classes_dir = path.join(heap_dir, 'classes') |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
109 |
os.makedirs(classes_dir) |
42115
e6a1dc0aa058
mira interface to 'isabelle make' in addition to usedir and makeall;
krauss
parents:
42114
diff
changeset
|
110 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
111 |
for dep_path in dep_paths: |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
112 |
subprocess.check_call(['cp', '-a'] + glob(dep_path + '/*') + [heap_dir]) |
45164 | 113 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
114 |
subprocess.check_call(['ln', '-s', classes_dir, path.join(isabelle_home, 'lib', 'classes')]) |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
115 |
jars = glob(path.join(classes_dir, 'ext', '*.jar')) |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
116 |
if jars: |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
117 |
subprocess.check_call(['touch'] + jars) |
42115
e6a1dc0aa058
mira interface to 'isabelle make' in addition to usedir and makeall;
krauss
parents:
42114
diff
changeset
|
118 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
119 |
# misc preparations |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
120 |
if 'lxbroy10' in misc.hostnames(): # special settings for lxbroy10 |
42823 | 121 |
more_settings += ''' |
43334
9970a4580d13
adding ISABELLE_GHC environment setting to mira configuration isabelle makeall all on lxbroy10
bulwahn
parents:
43153
diff
changeset
|
122 |
ISABELLE_GHC="/usr/bin/ghc" |
42823 | 123 |
''' |
124 |
||
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
125 |
prepare_isabelle_repository(isabelle_home, env.settings.contrib, None, |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
126 |
usedir_options="", more_settings=more_settings) |
42114 | 127 |
os.chdir(isabelle_home) |
41542 | 128 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
129 |
# invoke build tool |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
130 |
(return_code, log) = env.run_process('%s/bin/isabelle' % isabelle_home, 'build', '-s', '-v', *cmdargs) |
41542 | 131 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
132 |
# collect report |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
133 |
return (return_code == 0, extract_isabelle_run_summary(log), |
49175
eab51f249c70
option for discarding build results, enabled in particular for Isabelle_makeall
krauss
parents:
48848
diff
changeset
|
134 |
extract_report_data(isabelle_home, log), {'log': log}, heap_dir if keep_results else None) |
41542 | 135 |
|
136 |
||
43689 | 137 |
|
138 |
# Isabelle configurations |
|
139 |
||
140 |
@configuration(repos = [Isabelle], deps = []) |
|
141 |
def Pure(*args): |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
142 |
"""Pure Image""" |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
143 |
return isabelle_build(*(args + ("-b", "Pure"))) |
43689 | 144 |
|
41542 | 145 |
@configuration(repos = [Isabelle], deps = [(Pure, [0])]) |
146 |
def HOL(*args): |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
147 |
"""HOL Image""" |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
148 |
return isabelle_build(*(args + ("-b", "HOL"))) |
41542 | 149 |
|
46934 | 150 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
151 |
def HOL_Library(*args): |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
152 |
"""HOL Library""" |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
153 |
return isabelle_build(*(args + ("-b", "HOL-Library"))) |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
154 |
|
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
155 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
48688 | 156 |
def HOLCF(*args): |
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
157 |
"""HOLCF""" |
48688 | 158 |
return isabelle_build(*(args + ("-b", "HOLCF"))) |
46934 | 159 |
|
160 |
@configuration(repos = [Isabelle], deps = [(Pure, [0])]) |
|
161 |
def ZF(*args): |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
162 |
"""HOLCF""" |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
163 |
return isabelle_build(*(args + ("-b", "ZF"))) |
46934 | 164 |
|
165 |
||
47895 | 166 |
settings64=''' |
167 |
ML_PLATFORM=x86_64-linux |
|
168 |
ML_HOME="/home/polyml/polyml-5.4.1/x86_64-linux" |
|
169 |
ML_SYSTEM="polyml-5.4.1" |
|
170 |
''' |
|
171 |
||
47897 | 172 |
@configuration(repos = [Isabelle], deps = []) |
41542 | 173 |
def Isabelle_makeall(*args): |
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
174 |
"""Build all sessions""" |
49175
eab51f249c70
option for discarding build results, enabled in particular for Isabelle_makeall
krauss
parents:
48848
diff
changeset
|
175 |
return isabelle_build(*(args + ("-j", "6", "-o", "threads=4", "-a")), more_settings=settings64, keep_results=False) |
46934 | 176 |
|
46931 | 177 |
|
41542 | 178 |
# Mutabelle configurations |
179 |
||
180 |
def invoke_mutabelle(theory, env, case, paths, dep_paths, playground): |
|
181 |
||
182 |
"""Mutant testing for counterexample generators in Isabelle""" |
|
183 |
||
184 |
(loc_isabelle,) = paths |
|
185 |
(dep_isabelle,) = dep_paths |
|
43152
6c4e021dec06
adding more settings to mira's mutabelle configuration
bulwahn
parents:
42948
diff
changeset
|
186 |
more_settings = ''' |
43153
cbb748ccf81b
changing the mira setting again for the mutabelle configuration
bulwahn
parents:
43152
diff
changeset
|
187 |
ISABELLE_GHC="/usr/bin/ghc" |
43152
6c4e021dec06
adding more settings to mira's mutabelle configuration
bulwahn
parents:
42948
diff
changeset
|
188 |
''' |
6c4e021dec06
adding more settings to mira's mutabelle configuration
bulwahn
parents:
42948
diff
changeset
|
189 |
prepare_isabelle_repository(loc_isabelle, env.settings.contrib, dep_isabelle, |
6c4e021dec06
adding more settings to mira's mutabelle configuration
bulwahn
parents:
42948
diff
changeset
|
190 |
more_settings = more_settings) |
41542 | 191 |
os.chdir(loc_isabelle) |
192 |
||
193 |
(return_code, log) = env.run_process('bin/isabelle', |
|
194 |
'mutabelle', '-O', playground, theory) |
|
195 |
||
196 |
try: |
|
197 |
mutabelle_log = util.readfile(path.join(playground, 'log')) |
|
198 |
except IOError: |
|
199 |
mutabelle_log = '' |
|
200 |
||
42472 | 201 |
mutabelle_data = dict( |
202 |
(tool, {'counterexample': c, 'no_counterexample': n, 'timeout': t, 'error': e}) |
|
203 |
for tool, c, n, t, e in re.findall(r'(\S+)\s+: C: (\d+) N: (\d+) T: (\d+) E: (\d+)', log)) |
|
204 |
||
41542 | 205 |
return (return_code == 0 and mutabelle_log != '', extract_isabelle_run_summary(log), |
42472 | 206 |
{'mutabelle_results': {theory: mutabelle_data}}, |
41652 | 207 |
{'log': log, 'mutabelle_log': mutabelle_log}, None) |
41542 | 208 |
|
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
209 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 210 |
def Mutabelle_Relation(*args): |
211 |
"""Mutabelle regression suite on Relation theory""" |
|
212 |
return invoke_mutabelle('Relation', *args) |
|
213 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
214 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 215 |
def Mutabelle_List(*args): |
216 |
"""Mutabelle regression suite on List theory""" |
|
217 |
return invoke_mutabelle('List', *args) |
|
218 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
219 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 220 |
def Mutabelle_Set(*args): |
221 |
"""Mutabelle regression suite on Set theory""" |
|
222 |
return invoke_mutabelle('Set', *args) |
|
223 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
224 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 225 |
def Mutabelle_Map(*args): |
226 |
"""Mutabelle regression suite on Map theory""" |
|
227 |
return invoke_mutabelle('Map', *args) |
|
228 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
229 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 230 |
def Mutabelle_Divides(*args): |
231 |
"""Mutabelle regression suite on Divides theory""" |
|
232 |
return invoke_mutabelle('Divides', *args) |
|
233 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
234 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 235 |
def Mutabelle_MacLaurin(*args): |
236 |
"""Mutabelle regression suite on MacLaurin theory""" |
|
237 |
return invoke_mutabelle('MacLaurin', *args) |
|
238 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
239 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
41542 | 240 |
def Mutabelle_Fun(*args): |
241 |
"""Mutabelle regression suite on Fun theory""" |
|
242 |
return invoke_mutabelle('Fun', *args) |
|
42040 | 243 |
|
42393 | 244 |
mutabelle_confs = 'Mutabelle_Relation Mutabelle_List Mutabelle_Set Mutabelle_Map Mutabelle_Divides Mutabelle_MacLaurin Mutabelle_Fun'.split(' ') |
245 |
||
246 |
@scheduler() |
|
247 |
def mutabelle_scheduler(env): |
|
248 |
"""Scheduler for Mutabelle.""" |
|
249 |
return schedule.age_scheduler(env, 'Isabelle', mutabelle_confs) |
|
42040 | 250 |
|
47896 | 251 |
|
42040 | 252 |
# Judgement Day configurations |
253 |
||
42095 | 254 |
judgement_day_provers = ('e', 'spass', 'vampire', 'z3', 'cvc3', 'yices') |
42040 | 255 |
|
256 |
def judgement_day(base_path, theory, opts, env, case, paths, dep_paths, playground): |
|
257 |
"""Judgement Day regression suite""" |
|
258 |
||
259 |
isa = paths[0] |
|
260 |
dep_path = dep_paths[0] |
|
261 |
||
262 |
os.chdir(path.join(playground, '..', base_path)) # Mirabelle requires specific cwd |
|
263 |
prepare_isabelle_repository(isa, env.settings.contrib, dep_path) |
|
264 |
||
265 |
output = {} |
|
266 |
success_rates = {} |
|
267 |
some_success = False |
|
268 |
||
269 |
for atp in judgement_day_provers: |
|
270 |
||
271 |
log_dir = path.join(playground, 'mirabelle_log_' + atp) |
|
272 |
os.makedirs(log_dir) |
|
273 |
||
274 |
cmd = ('%s/bin/isabelle mirabelle -q -O %s sledgehammer[prover=%s,%s] %s.thy' |
|
275 |
% (isa, log_dir, atp, opts, theory)) |
|
276 |
||
277 |
os.system(cmd) |
|
278 |
output[atp] = util.readfile(path.join(log_dir, theory + '.log')) |
|
279 |
||
280 |
percentages = list(re.findall(r'Success rate: (\d+)%', output[atp])) |
|
281 |
if len(percentages) == 2: |
|
282 |
success_rates[atp] = { |
|
283 |
'sledgehammer': int(percentages[0]), |
|
284 |
'metis': int(percentages[1])} |
|
285 |
if success_rates[atp]['sledgehammer'] > 0: |
|
286 |
some_success = True |
|
287 |
else: |
|
288 |
success_rates[atp] = {} |
|
289 |
||
290 |
||
291 |
data = {'success_rates': success_rates} |
|
292 |
raw_attachments = dict((atp + "_output", output[atp]) for atp in judgement_day_provers) |
|
293 |
# FIXME: summary? |
|
294 |
return (some_success, '', data, raw_attachments, None) |
|
295 |
||
296 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
297 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
42040 | 298 |
def JD_NS(*args): |
299 |
"""Judgement Day regression suite NS""" |
|
300 |
return judgement_day('Isabelle/src/HOL/Auth', 'NS_Shared', 'prover_timeout=10', *args) |
|
301 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
302 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
42040 | 303 |
def JD_FTA(*args): |
304 |
"""Judgement Day regression suite FTA""" |
|
305 |
return judgement_day('Isabelle/src/HOL/Library', 'Fundamental_Theorem_Algebra', 'prover_timeout=10', *args) |
|
306 |
||
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
307 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
42040 | 308 |
def JD_Hoare(*args): |
309 |
"""Judgement Day regression suite Hoare""" |
|
42058
1eda69f0b9a8
moved some configurations to AFP, and fixed others
krauss
parents:
42040
diff
changeset
|
310 |
return judgement_day('Isabelle/src/HOL/IMPP', 'Hoare', 'prover_timeout=10', *args) |
42040 | 311 |
|
42948
e6990acab6ff
reverted 7fdd8d4908dc -- keeping images from Isabelle_makeall would be too expensive
krauss
parents:
42824
diff
changeset
|
312 |
@configuration(repos = [Isabelle], deps = [(HOL, [0])]) |
42040 | 313 |
def JD_SN(*args): |
314 |
"""Judgement Day regression suite SN""" |
|
42058
1eda69f0b9a8
moved some configurations to AFP, and fixed others
krauss
parents:
42040
diff
changeset
|
315 |
return judgement_day('Isabelle/src/HOL/Proofs/Lambda', 'StrongNorm', 'prover_timeout=10', *args) |
42040 | 316 |
|
42116
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
317 |
|
42192 | 318 |
JD_confs = 'JD_NS JD_FTA JD_Hoare JD_SN JD_Arrow JD_FFT JD_Jinja JD_QE JD_S2S'.split(' ') |
319 |
||
320 |
@scheduler() |
|
42197 | 321 |
def judgement_day_scheduler(env): |
42192 | 322 |
"""Scheduler for Judgement Day.""" |
323 |
return schedule.age_scheduler(env, 'Isabelle', JD_confs) |
|
324 |
||
325 |
||
42116
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
326 |
# SML/NJ |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
327 |
|
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
328 |
smlnj_settings = ''' |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
329 |
ML_SYSTEM=smlnj |
48443 | 330 |
ML_HOME="/home/smlnj/110.74/bin" |
331 |
ML_OPTIONS="@SMLdebug=/dev/null @SMLalloc=1024" |
|
42116
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
332 |
ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX") |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
333 |
''' |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
334 |
|
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
335 |
@configuration(repos = [Isabelle], deps = [(Pure, [0])]) |
42116
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
336 |
def SML_HOL(*args): |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
337 |
"""HOL image built with SML/NJ""" |
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
338 |
return isabelle_build(*(args + ("-b", "HOL")), more_settings=smlnj_settings) |
42116
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
339 |
|
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
340 |
@configuration(repos = [Isabelle], deps = []) |
b9ae421fbcc7
added configurations SML_HOL and SML_makeall (even though the latter is practically infeasible)
krauss
parents:
42115
diff
changeset
|
341 |
def SML_makeall(*args): |
48686
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
342 |
"""SML/NJ build of all possible sessions""" |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
343 |
return isabelle_build(*(args + ("-j", "3", "-a")), more_settings=smlnj_settings) |
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
344 |
|
4cf09bc175d7
modernized mira configurations, making use of isabelle build
krauss
parents:
48685
diff
changeset
|
345 |