19 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: echo "print('Rene Magritte')" >> %t/foo.py3# RUN: echo "print('Jan van Eyck')" >> %t/foo-bar.py4# RUN: echo "print('Pieter Bruegel the Elder')" >> %t/foo.bar.py5# RUN: echo "print('Pieter Bruegel the Younger')" >> %t/foo.bar6 7# RUN: %lldb --script-language python -o 'command script import %t/foo.py' 2>&1 | FileCheck %s --check-prefix MAGRITTE8# MAGRITTE: Rene Magritte9 10# RUN: %lldb --script-language python -o 'command script import %t/foo-bar.py' 2>&1 | FileCheck %s --check-prefix VANEYCK11# VANEYCK-NOT: Jan van Eyck12# VANEYCK: module importing failed: Python discourages dashes in module names: foo-bar13 14# RUN: %lldb --script-language python -o 'command script import %t/foo.bar.py' 2>&1 | FileCheck %s --check-prefix BRUEGEL15# RUN: %lldb --script-language python -o 'command script import %t/foo.bar' 2>&1 | FileCheck %s --check-prefix BRUEGEL16# BRUEGEL-NOT: Pieter Bruegel the Elder17# BRUEGEL-NOT: Pieter Bruegel the Younger18# BRUEGEL: module importing failed: Python does not allow dots in module names: foo.bar19