Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Oct 5, 2017
1 parent 883addd commit 2c63aff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setUpClass(cls):
if any(platform.win32_ver()):
cls.prefix = os.path.join(cls.prefix, 'Library')
Repo.clone_from('https://github.com/StatisKit/FP17.git', cls.srcdir.relpath('.'))
subprocess.check_output(['scons', 'cpp', '--prefix=' + str(prefix)],
subprocess.check_output(['scons', 'cpp', '--prefix=' + str(cls.prefix)],
cwd=cls.srcdir)
if any(platform.win32_ver()):
cls.scons = subprocess.check_output(['where', 'scons.bat']).strip()
Expand Down Expand Up @@ -60,6 +60,10 @@ def test_mapping_export(self):
subprocess.check_call([self.scons, 'py', '--prefix=' + self.prefix],
cwd=self.srcdir)

for filepath in (self.srcdir/'src'/'py').walkfiles():
if filepath.exists() and filepath.ext in ['.cpp', '.h']:
filepath.remove()

@attr(win=False)
def test_pyclanglite_parser(self):
"""Test `pyclanglite` parser"""
Expand Down

0 comments on commit 2c63aff

Please sign in to comment.