diff options
author | Karl Ramm <kcr@1ts.org> | 2009-08-01 19:26:20 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-08-01 19:26:20 +0000 |
commit | eba1571011734123dc5b77c0958903bf9ac07027 (patch) | |
tree | 699b5a56c7109885064da2ea22fd7176ce174393 /lib | |
parent | d80b9ca208909b85673b1524a8b9b47482af665b (diff) |
actually look search for the shared library, and hopefully also find it on
a mac
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/zephyr_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
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") |