Skip to content

Commit 18c4a3c

Browse files
committed
show configuration in html output
1 parent 761f16e commit 18c4a3c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/update_suite.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,14 @@ def to_s
391391
end
392392

393393
class ProjectIncr < Project
394-
attr_reader :patch_path
394+
attr_reader :patch_path, :conf_path
395395
attr_accessor :testset_incr
396396
@testset_incr
397-
def initialize(id, name, group, path, params, patch_path)
397+
def initialize(id, name, group, path, params, patch_path, conf_path)
398398
super(id, name, group, path, params)
399399
@patch_path = patch_path
400-
@html_heading = html_heading + ["Patched", "Size (CIL) Incr", "Checks Incr", "Time Incr", "Vars / Eval Incr", "Problems Incr"]
400+
@conf_path = conf_path
401+
@html_heading = html_heading + ["Config", "Patched", "Size (CIL) Incr", "Checks Incr", "Time Incr", "Vars / Eval Incr", "Problems Incr"]
401402
end
402403

403404
def create_test_set(lines)
@@ -448,6 +449,7 @@ def compare_warnings
448449

449450
def to_html
450451
super +
452+
"<td><a href=\"#{conf_path}\">#{name}</a></td>\n" +
451453
testset_incr.to_html
452454
end
453455
end
@@ -510,7 +512,9 @@ def run ()
510512
p = if incremental then
511513
patch = f[0..-3] + ".patch"
512514
patch_path = File.expand_path(patch, grouppath)
513-
ProjectIncr.new(id, testname, groupname, path, params, patch_path)
515+
conf = f[0..-3] + ".json"
516+
conf_path = File.expand_path(conf, grouppath)
517+
ProjectIncr.new(id, testname, groupname, path, params, patch_path, conf_path)
514518
else
515519
Project.new(id, testname, groupname, path, params)
516520
end

0 commit comments

Comments
 (0)