Skip to content

Commit

Permalink
Attempt GCC-analyzer (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwiggers committed Jul 18, 2022
1 parent 6cd3167 commit 6a67a63
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions test/test_functest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@
def test_functest(implementation, impl_path, test_dir,
init, destr):
init()
dest_dir = os.path.join(test_dir, 'bin')
helpers.make('functest',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
SCHEME_DIR=impl_path,
DEST_DIR=dest_dir,
working_dir=os.path.join(test_dir, 'test'))
flags = ""
if os.environ.get("CC", "gcc") == "gcc" and sys.platform == "linux":
flags = "-fanalyzer"
dest_dir = os.path.join(test_dir, "bin")
helpers.make(
"functest",
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
SCHEME_DIR=impl_path,
DEST_DIR=dest_dir,
EXTRAFLAGS=flags,
working_dir=os.path.join(test_dir, "test"),
)
helpers.run_subprocess(
[os.path.join(dest_dir, 'functest_{}_{}{}'.format(
implementation.scheme.name,
Expand Down

0 comments on commit 6a67a63

Please sign in to comment.