187aa9c9eSJonas Devlieghere# REQUIRES: system-darwin 287aa9c9eSJonas Devlieghere 387aa9c9eSJonas Devlieghere# Start fresh. 487aa9c9eSJonas Devlieghere# RUN: rm -rf %t.repro 587aa9c9eSJonas Devlieghere# RUN: rm -rf %t.root 687aa9c9eSJonas Devlieghere# RUN: rm -rf %t.clang-cache 787aa9c9eSJonas Devlieghere# RUN: rm -rf %t.lldb-cache 887aa9c9eSJonas Devlieghere 987aa9c9eSJonas Devlieghere# Create a temporary root we can remove later. 1087aa9c9eSJonas Devlieghere# RUN: mkdir -p %t.root 1187aa9c9eSJonas Devlieghere# RUN: mkdir -p %t.clang-cache 1287aa9c9eSJonas Devlieghere# RUN: mkdir -p %t.lldb-cache 1387aa9c9eSJonas Devlieghere# RUN: cp %S/Inputs/main.cpp %t.root 1487aa9c9eSJonas Devlieghere# RUN: cp %S/Inputs/Foo.h %t.root 1587aa9c9eSJonas Devlieghere# RUN: cp %S/Inputs/Bar.h %t.root 1687aa9c9eSJonas Devlieghere# RUN: cp %S/Inputs/module.modulemap %t.root 1787aa9c9eSJonas Devlieghere 1887aa9c9eSJonas Devlieghere# Compile the test case form the temporary root. 19*9c739252SPavel Labath# RUN: %clang_host %t.root/main.cpp -g -fmodules -fcxx-modules -fmodules-cache-path=%t.clang-cache -o %t.root/a.out 2087aa9c9eSJonas Devlieghere 2187aa9c9eSJonas Devlieghere# Capture the debug session. 2287aa9c9eSJonas Devlieghere# RUN: %lldb -x -b -o 'settings set symbols.clang-modules-cache-path %t.lldb-cache' -s %S/Inputs/ModuleCXX.in --capture --capture-path %t.repro %t.root/a.out | FileCheck %s --check-prefix CAPTURE 2387aa9c9eSJonas Devlieghere# CAPTURE: (success = 0) 2487aa9c9eSJonas Devlieghere 2587aa9c9eSJonas Devlieghere# RUN: cat %t.repro/files.yaml | FileCheck %s --check-prefix YAML 2687aa9c9eSJonas Devlieghere# YAML-DAG: Foo.h 2787aa9c9eSJonas Devlieghere# YAML-DAG: Bar.h 2887aa9c9eSJonas Devlieghere# YAML-DAG: module.modulemap 2987aa9c9eSJonas Devlieghere 3087aa9c9eSJonas Devlieghere# Remove the temporary root. 3187aa9c9eSJonas Devlieghere# RUN: rm -rf %t.root 3287aa9c9eSJonas Devlieghere# RUN: rm -rf %t.clang-cache 3387aa9c9eSJonas Devlieghere# RUN: rm -rf %t.lldb-cache 34