Skip to content

Commit 41123b5

Browse files
committed
Allow parallel update_suite run with -w
1 parent 6d0b69c commit 41123b5

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

scripts/update_suite.rb

Lines changed: 4 additions & 6 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 witness 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
@@ -567,13 +564,14 @@ def create_test_set(lines)
567564
end
568565
def run ()
569566
filename = File.basename(@path)
570-
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"
571-
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}"
572570
starttime = Time.now
573571
run_testset(@testset, cmd1, starttime)
574572
starttime = Time.now
575573
run_testset(@testset, cmd2, starttime)
576-
FileUtils.rm_f('witness.yml')
574+
FileUtils.rm_f(witness)
577575
end
578576
end
579577

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)