diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-07-24 13:11:22 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-08-08 13:02:29 +0200 |
commit | 4799def06dc6ba16216d328e4be7d9dfe896b38d (patch) | |
tree | 425b6ab6aad98d279039e2e48abc7938384a3ac6 /test | |
parent | 5e0c943b02e844d7547317e967b019354ae41441 (diff) |
osxuniversalgenerator: handle properly .pc and .la files
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cerbero_tools_osxuniversalgenerator.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_cerbero_tools_osxuniversalgenerator.py b/test/test_cerbero_tools_osxuniversalgenerator.py index dcc5ca1..b33ba97 100644 --- a/test/test_cerbero_tools_osxuniversalgenerator.py +++ b/test/test_cerbero_tools_osxuniversalgenerator.py @@ -158,3 +158,17 @@ class OSXUniversalGeneratorTest(unittest.TestCase): self.assertTrue(os.path.exists(file1)) self.assertTrue(os.path.exists(file2)) self.assertEquals(os.readlink(file2), file1) + + def testMergePCFiles(self): + for arch in [Architecture.X86, Architecture.X86_64]: + pc_file = os.path.join(self.tmp, arch, 'test.pc') + with open(pc_file, 'w') as f: + f.write(os.path.join(self.tmp, arch, 'lib', 'test')) + gen = OSXUniversalGenerator( + os.path.join(self.tmp, Architecture.UNIVERSAL)) + gen.merge_files(['test.pc'], + [os.path.join(self.tmp, Architecture.X86), + os.path.join(self.tmp, Architecture.X86_64)]) + pc_file = os.path.join(self.tmp, Architecture.UNIVERSAL, 'test.pc') + self.assertEquals(open(pc_file).readline(), + os.path.join(self.tmp, Architecture.UNIVERSAL, 'lib', 'test')) |