summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-01-22 17:47:51 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-22 17:47:51 +0100
commit4b3e21b8941fe53b85eb889734c34937438b0928 (patch)
treec7fe027b88eb0358161907f403af7cd0b5f32ad3
parent6fe2c2b209814d7fe94f60d54c38ae75b1dc67af (diff)
downloadmeson-4b3e21b8941fe53b85eb889734c34937438b0928.tar.gz
Fixed test case and setup.py
-rwxr-xr-xrun_unittests.py10
-rw-r--r--setup.py1
2 files changed, 4 insertions, 7 deletions
diff --git a/run_unittests.py b/run_unittests.py
index e52a15ec8..cde5589c7 100755
--- a/run_unittests.py
+++ b/run_unittests.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):
diff --git a/setup.py b/setup.py
index f1f2e81c1..f35296030 100644
--- a/setup.py
+++ b/setup.py
@@ -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',