diff options
Diffstat (limited to 'meson/test cases/d/3 shared library/lld-test.py')
-rw-r--r-- | meson/test cases/d/3 shared library/lld-test.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/d/3 shared library/lld-test.py b/meson/test cases/d/3 shared library/lld-test.py new file mode 100644 index 000000000..3f32f59fb --- /dev/null +++ b/meson/test cases/d/3 shared library/lld-test.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +import argparse +import subprocess + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('ldd') + parser.add_argument('bin') + args = parser.parse_args() + + p, o, _ = subprocess.run([args.ldd, args.bin], stdout=subprocess.PIPE) + assert p == 0 + o = o.decode() + assert 'libstuff.so =>' in o, 'libstuff so not in linker path.' + assert 'libstuff.so => not found' not in o, 'libstuff.so not found correctly' + + +if __name__ == '__main__': + main() |