Fixed test case and setup.py

pull/4814/head
Daniel Mensinger 6 years ago
parent 6fe2c2b209
commit 4b3e21b894
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 10
      run_unittests.py
  2. 1
      setup.py

@ -5018,17 +5018,13 @@ class RewriterTests(BasePlatformTests):
self.prime('2 subdirs')
out = self.rewrite(self.builddir, os.path.join(self.builddir, 'addSrc.json'))
out = self.extract_test_data(out)
expected = {
'target': {
'd3a7449@@something@exe': {'name': 'something', 'sources': ['first.c', 'second.c', 'third.c']}
}
}
self.assertDictEqual(out, expected)
expected = {'name': 'something', 'sources': ['first.c', 'second.c', 'third.c']}
self.assertDictEqual(list(out['target'].values())[0], expected)
# Check the written file
out = self.rewrite(self.builddir, os.path.join(self.builddir, 'info.json'))
out = self.extract_test_data(out)
self.assertDictEqual(out, expected)
self.assertDictEqual(list(out['target'].values())[0], expected)
class NativeFileTests(BasePlatformTests):

@ -28,6 +28,7 @@ from setuptools import setup
# Other platforms will create bin/meson
entries = {'console_scripts': ['meson=mesonbuild.mesonmain:main']}
packages = ['mesonbuild',
'mesonbuild.ast',
'mesonbuild.backend',
'mesonbuild.compilers',
'mesonbuild.dependencies',

Loading…
Cancel
Save