llvm-project/lldb/lit/Minidump/dump-all.test

87 lines
5.5 KiB
Plaintext

# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --all' | \
# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \
# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \
# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \
# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \
# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump -a' | \
# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \
# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \
# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \
# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \
# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --directory' | FileCheck --check-prefix=CHECKDIR %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --d' | FileCheck --check-prefix=CHECKDIR %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --linux' | \
# RUN: FileCheck --check-prefix=CHECKCPU --check-prefix=CHECKSTATUS \
# RUN: --check-prefix=CHECKLSB --check-prefix=CHECKCMD --check-prefix=CHECKENV \
# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP --check-prefix=CHECKSTAT \
# RUN: --check-prefix=CHECKUP --check-prefix=CHECKFD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --cpuinfo' | FileCheck --check-prefix=CHECKCPU %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --C' | FileCheck --check-prefix=CHECKCPU %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --status' | FileCheck --check-prefix=CHECKSTATUS %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --s' | FileCheck --check-prefix=CHECKSTATUS %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --lsb-release' | FileCheck --check-prefix=CHECKLSB %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --r' | FileCheck --check-prefix=CHECKLSB %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --cmdline' | FileCheck --check-prefix=CHECKCMD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --c' | FileCheck --check-prefix=CHECKCMD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --environ' | FileCheck --check-prefix=CHECKENV %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --e' | FileCheck --check-prefix=CHECKENV %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --auxv' | FileCheck --check-prefix=CHECKAUX %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --x' | FileCheck --check-prefix=CHECKAUX %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --maps' | FileCheck --check-prefix=CHECKMAP %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --m' | FileCheck --check-prefix=CHECKMAP %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --stat' | FileCheck --check-prefix=CHECKSTAT %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --S' | FileCheck --check-prefix=CHECKSTAT %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --uptime' | FileCheck --check-prefix=CHECKUP %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --u' | FileCheck --check-prefix=CHECKUP %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --fd' | FileCheck --check-prefix=CHECKFD %s
# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --f' | FileCheck --check-prefix=CHECKFD %s
# CHECKDIR: RVA SIZE TYPE MinidumpStreamType
# CHECKDIR-NEXT: ---------- ---------- ---------- --------------------------
# CHECKDIR-NEXT: 0x000000b0 0x00000038 0x00000007 SystemInfo
# CHECKDIR-NEXT: 0x0000015d 0x0000001b 0x47670007 LinuxEnviron
# CHECKDIR-NEXT: 0x00000190 0x000000bc 0x47670009 LinuxMaps
# CHECKDIR-NEXT: 0x00000110 0x0000001a 0x47670004 LinuxProcStatus
# CHECKDIR-NEXT: 0x0000024c 0x00000018 0x4767000b LinuxProcStat
# CHECKDIR-NEXT: 0x00000142 0x0000001b 0x47670006 LinuxCMDLine
# CHECKDIR-NEXT: 0x00000272 0x00000016 0x4767000d LinuxProcFD
# CHECKDIR-NEXT: 0x00000178 0x00000018 0x47670008 LinuxAuxv
# CHECKDIR-NEXT: 0x000000e8 0x00000018 0x0000000f MiscInfo
# CHECKDIR-NEXT: 0x00000100 0x00000010 0x47670003 LinuxCPUInfo
# CHECKDIR-NEXT: 0x0000012a 0x00000018 0x47670005 LinuxLSBRelease
# CHECKDIR-NEXT: 0x00000264 0x0000000e 0x4767000c LinuxProcUptime
# CHECKCPU: /proc/cpuinfo:
# CHECKCPU-NEXT: cpu info output
# CHECKSTATUS: /proc/PID/status:
# CHECKSTATUS-NEXT: /proc/<pid>/status output
# CHECKLSB: /etc/lsb-release:
# CHECKLSB-NEXT: /etc/lsb-release output
# CHECKCMD: /proc/PID/cmdline:
# CHECKCMD-NEXT: /proc/<pid>/cmdline output
# CHECKENV: /proc/PID/environ:
# CHECKENV-NEXT: /proc/<pid>/environ output
# CHECKAUX: /proc/PID/auxv:
# CHECKAUX-NEXT: 0x00000000: 2f 70 72 6f 63 2f 3c 70 69 64 3e 2f 61 75 78 76 /proc/<pid>/auxv
# CHECKAUX-NEXT: 0x00000010: 20 6f 75 74 70 75 74 00 output.
# CHECKMAP: /proc/PID/maps:
# CHECKMAP-NEXT: 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process
# CHECKMAP-NEXT: 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process
# CHECKMAP-NEXT: 400dc000-400dd000 rw-p 00000000 00:00 0
# CHECKSTAT: /proc/PID/stat:
# CHECKSTAT-NEXT: /proc/<pid>/stat output
# CHECKUP: uptime:
# CHECKUP-NEXT: uptime output
# CHECKFD: /proc/PID/fd:
# CHECKFD-NEXT: /proc/<pid>/fd output