diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-22 17:47:51 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-22 17:47:51 +0100 |
commit | 4b3e21b8941fe53b85eb889734c34937438b0928 (patch) | |
tree | c7fe027b88eb0358161907f403af7cd0b5f32ad3 | |
parent | 6fe2c2b209814d7fe94f60d54c38ae75b1dc67af (diff) | |
download | meson-4b3e21b8941fe53b85eb889734c34937438b0928.zip meson-4b3e21b8941fe53b85eb889734c34937438b0928.tar.gz meson-4b3e21b8941fe53b85eb889734c34937438b0928.tar.bz2 |
Fixed test case and setup.py
-rwxr-xr-x | run_unittests.py | 10 | ||||
-rw-r--r-- | setup.py | 1 |
2 files changed, 4 insertions, 7 deletions
diff --git a/run_unittests.py b/run_unittests.py index e52a15e..cde5589 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): @@ -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', |