Skip to content

Commit

Permalink
Add NOMAC option
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Dec 25, 2024
1 parent f418b00 commit 93b7f0c
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --locked --with-test

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Install coverage dependencies
run: opam install bisect_ppx

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --locked --with-doc

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Build API docs
run: opam exec -- dune build @doc

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/locked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --locked --with-test

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Build
run: ./make.sh nat

Expand Down Expand Up @@ -100,6 +103,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --locked --with-test

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Build
run: ./make.sh nat

Expand Down Expand Up @@ -142,6 +148,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --locked

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Setup Gobview
run: ./make.sh setup_gobview

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/unlocked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:

- name: Install dependencies
run: opam install . --deps-only --with-test

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Install Apron dependencies
if: ${{ matrix.apron }}
Expand Down Expand Up @@ -118,6 +121,9 @@ jobs:
- name: Install dependencies
run: opam install . --deps-only --with-test

- name: Install os gem for operating system detection
run: sudo gem install os

- name: Install Apron dependencies
run: |
opam depext apron
Expand Down
1 change: 1 addition & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ rule() {
# Use `git commit -n` to temporarily bypass the hook if necessary.
echo "Installing gem parallel (not needed for ./scripts/update_suite.rb -s)"
sudo gem install parallel
sudo gem install os
;; headers)
curl -L -O https://github.com/goblint/linux-headers/archive/master.tar.gz
tar xf master.tar.gz && rm master.tar.gz
Expand Down
4 changes: 4 additions & 0 deletions scripts/update_suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# gobopt environment variable can be used to override goblint defaults and PARAMs

require 'os'
require 'find'
require 'fileutils'
require 'timeout'
Expand Down Expand Up @@ -575,6 +576,8 @@ def run ()
end
end

mac = OS.mac?

#processing the file information
projects = []
project_ids = Set.new
Expand Down Expand Up @@ -603,6 +606,7 @@ def run ()
lines = IO.readlines(path, :encoding => "UTF-8")

next if not future and only.nil? and lines[0] =~ /SKIP/
next if mac and lines[0] =~ /NOMAC/
next if marshal and lines[0] =~ /NOMARSHAL/
next if not has_linux_headers and lines[0] =~ /kernel/
if incremental then
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/82-barrier/01-simple.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// PARAM: --set ana.activated[+] 'pthreadBarriers'
// NOMAC PARAM: --set ana.activated[+] 'pthreadBarriers'
#include<pthread.h>
#include<stdio.h>
#include<unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/82-barrier/02-more.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// PARAM: --set ana.activated[+] 'pthreadBarriers'
// NOMAC PARAM: --set ana.activated[+] 'pthreadBarriers'
#include<pthread.h>
#include<stdio.h>
#include<unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/82-barrier/03-problem.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// PARAM: --set ana.activated[+] 'pthreadBarriers'
// NOMAC PARAM: --set ana.activated[+] 'pthreadBarriers'
#include<pthread.h>
#include<stdio.h>
#include<unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/82-barrier/04-challenge.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// PARAM: --set ana.activated[+] 'pthreadBarriers'
// NOMAC PARAM: --set ana.activated[+] 'pthreadBarriers'
#include<pthread.h>
#include<stdio.h>
#include<unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/82-barrier/05-mhp-not-enough.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// PARAM: --set ana.activated[+] 'pthreadBarriers'
// NOMAC PARAM: --set ana.activated[+] 'pthreadBarriers'
#include<pthread.h>
#include<stdio.h>
#include<unistd.h>
Expand Down

0 comments on commit 93b7f0c

Please sign in to comment.