@@ -73,9 +73,6 @@ def clearline
7373incremental = ( ARGV . last == "-i" && ARGV . pop ) || cfg
7474report = ARGV . last == "-r" && ARGV . pop
7575only = ARGV [ 0 ] unless ARGV [ 0 ] . nil?
76- if marshal || witness || incremental then
77- sequential = true
78- end
7976if marshal && incremental then
8077 fail "Marshal (-m) and Incremental (-i) tests can not be activated at the same time!"
8178end
@@ -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
559558end
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
576576end
577577
0 commit comments