1# REQUIRES: python 2 3# RUN: rm -rf %t && mkdir -p %t 4# RUN: echo "print('Rene Magritte')" >> %t/foo.py 5# RUN: echo "print('Jan van Eyck')" >> %t/foo-bar.py 6# RUN: echo "print('Pieter Bruegel the Elder')" >> %t/foo.bar.py 7# RUN: echo "print('Pieter Bruegel the Younger')" >> %t/foo.bar 8 9# RUN: %lldb --script-language python -o 'command script import %t/foo.py' 2>&1 | FileCheck %s --check-prefix MAGRITTE 10# MAGRITTE: Rene Magritte 11 12# RUN: %lldb --script-language python -o 'command script import %t/foo-bar.py' 2>&1 | FileCheck %s --check-prefix VANEYCK 13# VANEYCK-NOT: Jan van Eyck 14# VANEYCK: module importing failed: Python discourages dashes in module names: foo-bar 15 16# RUN: %lldb --script-language python -o 'command script import %t/foo.bar.py' 2>&1 | FileCheck %s --check-prefix BRUEGEL 17# RUN: %lldb --script-language python -o 'command script import %t/foo.bar' 2>&1 | FileCheck %s --check-prefix BRUEGEL 18# BRUEGEL-NOT: Pieter Bruegel the Elder 19# BRUEGEL-NOT: Pieter Bruegel the Younger 20# BRUEGEL: module importing failed: Python does not allow dots in module names: foo.bar 21