Skip to content

Commit 6f2a10b

Browse files
authored
Merge pull request #1884 from goblint/update_suite-parallel
Allow parallel update_suite run with -m/-i/-w
2 parents c286cce + ed9c4be commit 6f2a10b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/unlocked.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ jobs:
193193
run: ruby scripts/update_suite.rb group apron-mukherjee -s
194194

195195
- name: Test marshal regression
196-
run: ruby scripts/update_suite.rb -m
196+
run: ruby scripts/update_suite.rb -m -s
197197

198198
- name: Test incremental regression
199-
run: ruby scripts/update_suite.rb -i
199+
run: ruby scripts/update_suite.rb -i -s
200200

201201
- name: Test incremental regression with cfg comparison
202-
run: ruby scripts/update_suite.rb -c
202+
run: ruby scripts/update_suite.rb -c -s
203203

204204
gobview:
205205
strategy:

scripts/update_suite.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ def clearline
7373
incremental = (ARGV.last == "-i" && ARGV.pop) || cfg
7474
report = ARGV.last == "-r" && ARGV.pop
7575
only = ARGV[0] unless ARGV[0].nil?
76-
if marshal || witness || incremental then
77-
sequential = true
78-
end
7976
if marshal && incremental then
8077
fail "Marshal (-m) and Incremental (-i) tests can not be activated at the same time!"
8178
end
@@ -505,8 +502,9 @@ def create_test_set(lines)
505502

506503
def run
507504
filename = File.basename(@path)
508-
cmd = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --enable incremental.save --set goblint-dir .goblint-#{@id.sub('/','-')}-incr-save 2>#{@testset.statsfile}"
509-
cmd_incr = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset_incr.warnfile} --enable dbg.timing.enabled --enable incremental.load --set goblint-dir .goblint-#{@id.sub('/','-')}-incr-load 2>#{@testset_incr.statsfile}"
505+
incrdir = "incremental_data-#{@id.sub('/','-')}"
506+
cmd = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --enable incremental.save --set incremental.save-dir #{incrdir} --set goblint-dir .goblint-#{@id.sub('/','-')}-incr-save 2>#{@testset.statsfile}"
507+
cmd_incr = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset_incr.warnfile} --enable dbg.timing.enabled --enable incremental.load --set incremental.load-dir #{incrdir} --set goblint-dir .goblint-#{@id.sub('/','-')}-incr-load 2>#{@testset_incr.statsfile}"
510508
starttime = Time.now
511509
run_testset(@testset_incr, cmd, starttime)
512510
# apply patch
@@ -515,7 +513,7 @@ def run
515513
run_testset(@testset_incr, cmd_incr, starttime)
516514
# revert patch
517515
`patch -p3 -b -R <#{@patch_path}`
518-
FileUtils.rm_rf('incremental_data')
516+
FileUtils.rm_rf(incrdir)
519517
end
520518

521519
def report
@@ -549,12 +547,13 @@ def create_test_set(lines)
549547
end
550548
def run ()
551549
filename = File.basename(@path)
552-
cmd1 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --set save_run run --set goblint-dir .goblint-#{@id.sub('/','-')}-run-save 2>#{@testset.statsfile}"
553-
cmd2 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --conf run/config.json --set save_run '' --set load_run run --set goblint-dir .goblint-#{@id.sub('/','-')}-run-load 2>#{@testset.statsfile}"
550+
rundir = "run-#{@id.sub('/','-')}"
551+
cmd1 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --set save_run #{rundir} --set goblint-dir .goblint-#{@id.sub('/','-')}-run-save 2>#{@testset.statsfile}"
552+
cmd2 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --enable dbg.timing.enabled --conf #{rundir}/config.json --set save_run '' --set load_run #{rundir} --set goblint-dir .goblint-#{@id.sub('/','-')}-run-load 2>#{@testset.statsfile}"
554553
starttime = Time.now
555554
run_testset(@testset, cmd1, starttime)
556555
run_testset(@testset, cmd2, starttime)
557-
FileUtils.rm_rf('run')
556+
FileUtils.rm_rf(rundir)
558557
end
559558
end
560559

@@ -565,13 +564,14 @@ def create_test_set(lines)
565564
end
566565
def run ()
567566
filename = File.basename(@path)
568-
cmd1 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile}0 --enable warn.debug --set dbg.timing.enabled true --enable witness.yaml.enabled --set goblint-dir .goblint-#{@id.sub('/','-')}-witness1 2>#{@testset.statsfile}0"
569-
cmd2 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --set ana.activated[+] unassume --enable warn.debug --set dbg.timing.enabled true --set witness.yaml.unassume witness.yml --set goblint-dir .goblint-#{@id.sub('/','-')}-witness2 2>#{@testset.statsfile}"
567+
witness = "witness-#{@id.sub('/','-')}.yml"
568+
cmd1 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile}0 --enable warn.debug --set dbg.timing.enabled true --enable witness.yaml.enabled --set witness.yaml.path #{witness} --set goblint-dir .goblint-#{@id.sub('/','-')}-witness1 2>#{@testset.statsfile}0"
569+
cmd2 = "#{$goblint} #{filename} #{@params} #{ENV['gobopt']} 1>#{@testset.warnfile} --set ana.activated[+] unassume --enable warn.debug --set dbg.timing.enabled true --set witness.yaml.unassume #{witness} --set goblint-dir .goblint-#{@id.sub('/','-')}-witness2 2>#{@testset.statsfile}"
570570
starttime = Time.now
571571
run_testset(@testset, cmd1, starttime)
572572
starttime = Time.now
573573
run_testset(@testset, cmd2, starttime)
574-
FileUtils.rm_f('witness.yml')
574+
FileUtils.rm_f(witness)
575575
end
576576
end
577577

tests/regression/01-cpa/48-inf-recursion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SKIP
1+
// SKIP NOTIMEOUT
22

33
// Can be used to try timeouts.
44
// With defaults this will create |int| contexts and lead to a stack overflow in

tests/regression/02-base/05-result_thread_creation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SKIP This is not testing anything right now...
1+
// SKIP NOCHECK This is not testing anything right now...
22
#include<stdlib.h>
33
#include<pthread.h>
44

0 commit comments

Comments
 (0)