From eba1571011734123dc5b77c0958903bf9ac07027 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 1 Aug 2009 19:26:20 +0000 Subject: actually look search for the shared library, and hopefully also find it on a mac --- lib/zephyr_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/zephyr_tests.py b/lib/zephyr_tests.py index dc2000f..371ab99 100755 --- a/lib/zephyr_tests.py +++ b/lib/zephyr_tests.py @@ -67,7 +67,11 @@ class ZephyrTestSuite(TestSuite): """Tests for libzephyr""" def setup(self): # find the library - libzephyr_path = os.path.join(self.builddir, "libzephyr.so.4.0.0") + libzephyr_paths = ['libzephyr.so', 'libzephyr.dylib'] + libzephyr_paths += [os.path.join('.libs', i) for i in libzephyr_paths] + libzephyr_paths = [os.path.join(self.builddir, i) for i in libzephyr_paths] + libzephyr_paths = [i for i in libzephyr_paths if os.path.exists(i)] + libzephyr_path = libzephyr_paths[0] # check for libtool... if not os.path.exists(libzephyr_path): libzephyr_path = os.path.join(self.builddir, ".libs", "libzephyr.so.4.0.0") -- cgit v1.2.3