aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-11-26 21:00:18 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-26 22:16:05 +0200
commit07d7e87411ca411682344c945c006fd61fa7ab98 (patch)
tree6036289fe41f8960ed31ffa8ddbc2b3483cb6b0d /run_unittests.py
parentd651727208f36acd470e68721020fa996bb3737f (diff)
downloadmeson-07d7e87411ca411682344c945c006fd61fa7ab98.zip
meson-07d7e87411ca411682344c945c006fd61fa7ab98.tar.gz
meson-07d7e87411ca411682344c945c006fd61fa7ab98.tar.bz2
Allow soname to be an arbitrary string and fix symlink generation.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 30e52f6..c2ebc64 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -215,8 +215,7 @@ class LinuxlikeTests(unittest.TestCase):
def test_soname(self):
testdir = os.path.join(self.unit_test_dir, '1 soname')
- subprocess.check_call(['cmake', '-DCMAKE_BUILD_TYPE=debug', '-G', 'Ninja', testdir],
- cwd=self.builddir, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+ self.init(testdir)
self.build()
# File without aliases set.
@@ -229,9 +228,9 @@ class LinuxlikeTests(unittest.TestCase):
# File with version set
verset = os.path.join(self.builddir, 'libverset.so')
self.assertTrue(os.path.exists(verset + '.4.5.6'))
- self.assertEqual(os.readlink(verset), 'libverset.so.4.5.6')
- self.assertEqual(self.get_soname(verset), 'libverset.so.4.5.6')
- self.assertEqual(len(glob(verset[:-3] + '*')), 2)
+ self.assertEqual(os.readlink(verset), 'libverset.so.4')
+ self.assertEqual(self.get_soname(verset), 'libverset.so.4')
+ self.assertEqual(len(glob(verset[:-3] + '*')), 3)
# File with soversion set
soverset = os.path.join(self.builddir, 'libsoverset.so')