diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-10-26 14:16:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 14:16:18 -0700 |
commit | 33323bb7e301a4148ca1cdb8d3feb11201fdbe66 (patch) | |
tree | b024088202adb2a0909835f82050a1e38d2c8a6c /run_unittests.py | |
parent | 8105c6f027b18cab3f3abea74471cbb0febd54d5 (diff) | |
parent | f3bb6bb227af00411346cfe3d901532c00ceeb55 (diff) | |
download | meson-33323bb7e301a4148ca1cdb8d3feb11201fdbe66.zip meson-33323bb7e301a4148ca1cdb8d3feb11201fdbe66.tar.gz meson-33323bb7e301a4148ca1cdb8d3feb11201fdbe66.tar.bz2 |
Merge pull request #952 from centricular/deterministic-sources-outputs
Ninja: Use OrderedDict in places where order matters
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index b9c1397..9391eae 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -136,5 +136,16 @@ class LinuxlikeTests(unittest.TestCase): self.assertTrue('-Werror' in vala_command) self.assertTrue('-Werror' in c_command) + def test_static_compile_order(self): + testdir = os.path.join(self.common_test_dir, '5 linkstatic') + self.init(testdir) + compdb = self.get_compdb() + # Rules will get written out in this order + self.assertTrue(compdb[0]['file'].endswith("libfile.c")) + self.assertTrue(compdb[1]['file'].endswith("libfile2.c")) + self.assertTrue(compdb[2]['file'].endswith("libfile3.c")) + self.assertTrue(compdb[3]['file'].endswith("libfile4.c")) + # FIXME: We don't have access to the linker command + if __name__ == '__main__': unittest.main() |