[Lldb-commits] [lldb] r359074 - yamlify lit/Minidump tests

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 24 01:09:36 PDT 2019


Author: labath
Date: Wed Apr 24 01:09:36 2019
New Revision: 359074

URL: http://llvm.org/viewvc/llvm-project?rev=359074&view=rev
Log:
yamlify lit/Minidump tests

Replace checked-in binaries by their yaml equivalents.

Added:
    lldb/trunk/lit/Minidump/Inputs/linux-x86_64.yaml
Removed:
    lldb/trunk/lit/Minidump/Inputs/dump-content.dmp
    lldb/trunk/lit/Minidump/Inputs/fb-dump-content.dmp
    lldb/trunk/lit/Minidump/Inputs/linux-x86_64.dmp
Modified:
    lldb/trunk/lit/Minidump/breakpad-symbols.test
    lldb/trunk/lit/Minidump/dump-all.test
    lldb/trunk/lit/Minidump/fb-dump.test

Removed: lldb/trunk/lit/Minidump/Inputs/dump-content.dmp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/Inputs/dump-content.dmp?rev=359073&view=auto
==============================================================================
Binary file - no diff available.

Removed: lldb/trunk/lit/Minidump/Inputs/fb-dump-content.dmp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/Inputs/fb-dump-content.dmp?rev=359073&view=auto
==============================================================================
Binary file - no diff available.

Removed: lldb/trunk/lit/Minidump/Inputs/linux-x86_64.dmp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/Inputs/linux-x86_64.dmp?rev=359073&view=auto
==============================================================================
Binary files lldb/trunk/lit/Minidump/Inputs/linux-x86_64.dmp (original) and lldb/trunk/lit/Minidump/Inputs/linux-x86_64.dmp (removed) differ

Added: lldb/trunk/lit/Minidump/Inputs/linux-x86_64.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/Inputs/linux-x86_64.yaml?rev=359074&view=auto
==============================================================================
--- lldb/trunk/lit/Minidump/Inputs/linux-x86_64.yaml (added)
+++ lldb/trunk/lit/Minidump/Inputs/linux-x86_64.yaml Wed Apr 24 01:09:36 2019
@@ -0,0 +1,29 @@
+--- !minidump
+Streams:         
+  - Type:            ModuleList
+    Modules:         
+      - Base of Image:   0x0000000000400000
+        Size of Image:   0x00001000
+        Module Name:     '/tmp/test/linux-x86_64'
+        CodeView Record: 4C457042E35C283BC327C28762DB788BF5A4078BE2351448
+  - Type:            SystemInfo
+    Processor Arch:  AMD64
+    Processor Level: 6
+    Processor Revision: 15876
+    Number of Processors: 40
+    Platform ID:     Linux
+    CSD Version:     'Linux 3.13.0-91-generic #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64'
+    CPU:             
+      Vendor ID:       GenuineIntel
+      Version Info:    0x00000000
+      Feature Info:    0x00000000
+  - Type:            LinuxProcStatus
+    Text:             |
+      Name:	linux-x86_64
+      State:	t (tracing stop)
+      Tgid:	29917
+      Ngid:	0
+      Pid:	29917
+      PPid:	29370
+
+...

Modified: lldb/trunk/lit/Minidump/breakpad-symbols.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/breakpad-symbols.test?rev=359074&r1=359073&r2=359074&view=diff
==============================================================================
--- lldb/trunk/lit/Minidump/breakpad-symbols.test (original)
+++ lldb/trunk/lit/Minidump/breakpad-symbols.test Wed Apr 24 01:09:36 2019
@@ -3,7 +3,8 @@
 #
 # The minidump input for this test taken from packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new
 
-# RUN: %lldb -c %S/Inputs/linux-x86_64.dmp \
+# RUN: yaml2obj %S/Inputs/linux-x86_64.yaml > %t
+# RUN: %lldb -c %t \
 # RUN:   -o "target symbols add -s /tmp/test/linux-x86_64 %S/Inputs/linux-x86_64.syms" \
 # RUN:   -s %s -o exit | FileCheck %s
 

Modified: lldb/trunk/lit/Minidump/dump-all.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/dump-all.test?rev=359074&r1=359073&r2=359074&view=diff
==============================================================================
--- lldb/trunk/lit/Minidump/dump-all.test (original)
+++ lldb/trunk/lit/Minidump/dump-all.test Wed Apr 24 01:09:36 2019
@@ -1,86 +1,126 @@
-# RUN: %lldb -c %p/Inputs/dump-content.dmp -o 'process plugin dump --all' | \
+# RUN: yaml2obj %s > %t
+# RUN: %lldb -c %t -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: %lldb -c %t -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: %lldb -c %t -o 'process plugin dump --directory' | FileCheck --check-prefix=CHECKDIR %s
+# RUN: %lldb -c %t -o 'process plugin dump -d' | FileCheck --check-prefix=CHECKDIR %s
+# RUN: %lldb -c %t -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
+# RUN: %lldb -c %t -o 'process plugin dump --cpuinfo'     | FileCheck --check-prefix=CHECKCPU %s
+# RUN: %lldb -c %t -o 'process plugin dump -C'            | FileCheck --check-prefix=CHECKCPU %s
+# RUN: %lldb -c %t -o 'process plugin dump --status'      | FileCheck --check-prefix=CHECKSTATUS %s
+# RUN: %lldb -c %t -o 'process plugin dump -s'            | FileCheck --check-prefix=CHECKSTATUS %s
+# RUN: %lldb -c %t -o 'process plugin dump --lsb-release' | FileCheck --check-prefix=CHECKLSB %s
+# RUN: %lldb -c %t -o 'process plugin dump -r'            | FileCheck --check-prefix=CHECKLSB %s
+# RUN: %lldb -c %t -o 'process plugin dump --cmdline'     | FileCheck --check-prefix=CHECKCMD %s
+# RUN: %lldb -c %t -o 'process plugin dump -c'            | FileCheck --check-prefix=CHECKCMD %s
+# RUN: %lldb -c %t -o 'process plugin dump --environ'     | FileCheck --check-prefix=CHECKENV %s
+# RUN: %lldb -c %t -o 'process plugin dump -e'            | FileCheck --check-prefix=CHECKENV %s
+# RUN: %lldb -c %t -o 'process plugin dump --auxv'        | FileCheck --check-prefix=CHECKAUX %s
+# RUN: %lldb -c %t -o 'process plugin dump -x'            | FileCheck --check-prefix=CHECKAUX %s
+# RUN: %lldb -c %t -o 'process plugin dump --maps'        | FileCheck --check-prefix=CHECKMAP %s
+# RUN: %lldb -c %t -o 'process plugin dump -m'            | FileCheck --check-prefix=CHECKMAP %s
+# RUN: %lldb -c %t -o 'process plugin dump --stat'        | FileCheck --check-prefix=CHECKSTAT %s
+# RUN: %lldb -c %t -o 'process plugin dump -S'            | FileCheck --check-prefix=CHECKSTAT %s
+# RUN: %lldb -c %t -o 'process plugin dump --uptime'      | FileCheck --check-prefix=CHECKUP %s
+# RUN: %lldb -c %t -o 'process plugin dump -u'            | FileCheck --check-prefix=CHECKUP %s
+# RUN: %lldb -c %t -o 'process plugin dump --fd'          | FileCheck --check-prefix=CHECKFD %s
+# RUN: %lldb -c %t -o 'process plugin dump -f'            | FileCheck --check-prefix=CHECKFD %s
+
 # CHECKDIR:      RVA        SIZE       TYPE       StreamType
 # CHECKDIR-NEXT: ---------- ---------- ---------- --------------------------
-# CHECKDIR-NEXT: 0x000000b0 0x00000038 0x00000007 SystemInfo
-# CHECKDIR-NEXT: 0x000000e8 0x00000018 0x0000000f MiscInfo
-# CHECKDIR-NEXT: 0x00000100 0x00000010 0x47670003 LinuxCPUInfo
-# CHECKDIR-NEXT: 0x00000110 0x0000001a 0x47670004 LinuxProcStatus
-# CHECKDIR-NEXT: 0x0000012a 0x00000018 0x47670005 LinuxLSBRelease
-# CHECKDIR-NEXT: 0x00000142 0x0000001b 0x47670006 LinuxCMDLine
-# CHECKDIR-NEXT: 0x0000015d 0x0000001b 0x47670007 LinuxEnviron
-# CHECKDIR-NEXT: 0x00000178 0x00000018 0x47670008 LinuxAuxv
-# CHECKDIR-NEXT: 0x00000190 0x000000bc 0x47670009 LinuxMaps
-# CHECKDIR-NEXT: 0x0000024c 0x00000018 0x4767000b LinuxProcStat
-# CHECKDIR-NEXT: 0x00000264 0x0000000e 0x4767000c LinuxProcUptime
-# CHECKDIR-NEXT: 0x00000272 0x00000016 0x4767000d LinuxProcFD
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000038 0x00000007 SystemInfo
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x0000000f MiscInfo
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000010 0x47670003 LinuxCPUInfo
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001a 0x47670004 LinuxProcStatus
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670005 LinuxLSBRelease
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670006 LinuxCMDLine
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670007 LinuxEnviron
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670008 LinuxAuxv
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x000000bb 0x47670009 LinuxMaps
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x4767000b LinuxProcStat
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000000e 0x4767000c LinuxProcUptime
+# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000016 0x4767000d LinuxProcFD
+
+--- !minidump
+Streams:         
+  - Type:            SystemInfo
+    Processor Arch:  ARM64
+    Platform ID:     Linux
+    CSD Version:     '15E216'
+    CPU:             
+      CPUID:           0x00000000
+  - Type:            MiscInfo
+    Content:         00000000010000007B000000000000000000000000000000
+  - Type:            LinuxCPUInfo
+    Text:             |
+      cpu info output
 
 # CHECKCPU:      /proc/cpuinfo:
 # CHECKCPU-NEXT: cpu info output
+  - Type:            LinuxProcStatus
+    Text:             |
+      /proc/<pid>/status output
 
 # CHECKSTATUS:      /proc/PID/status:
 # CHECKSTATUS-NEXT: /proc/<pid>/status output
+  - Type:            LinuxLSBRelease
+    Text:             |
+      /etc/lsb-release output
 
 # CHECKLSB:      /etc/lsb-release:
 # CHECKLSB-NEXT: /etc/lsb-release output
+  - Type:            LinuxCMDLine
+    Text:             |
+      /proc/<pid>/cmdline output
 
 # CHECKCMD:      /proc/PID/cmdline:
 # CHECKCMD-NEXT: /proc/<pid>/cmdline output
-
+  - Type:            LinuxEnviron
+    Content:         2F70726F632F3C7069643E2F656E7669726F6E206F757470757400
 # CHECKENV:      /proc/PID/environ:
 # CHECKENV-NEXT: /proc/<pid>/environ output
-
+  - Type:            LinuxAuxv
+    Content:         2F70726F632F3C7069643E2F61757876206F757470757400
 # 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.
+  - Type:            LinuxMaps
+    Text:             |
+      400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
+      400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process
+      400dc000-400dd000 rw-p 00000000 00:00 0 
 
 # 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 
+  - Type:            LinuxProcStat
+    Text:             |
+      /proc/<pid>/stat output
 
 # CHECKSTAT:      /proc/PID/stat:
 # CHECKSTAT-NEXT: /proc/<pid>/stat output
+  - Type:            LinuxProcUptime
+    Text:             |
+      uptime output
 
 # CHECKUP:      uptime:
 # CHECKUP-NEXT: uptime output
-
+  - Type:            LinuxProcFD
+    Content:         2F70726F632F3C7069643E2F6664206F757470757400
 # CHECKFD:      /proc/PID/fd:
 # CHECKFD-NEXT: /proc/<pid>/fd output
+...

Modified: lldb/trunk/lit/Minidump/fb-dump.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Minidump/fb-dump.test?rev=359074&r1=359073&r2=359074&view=diff
==============================================================================
--- lldb/trunk/lit/Minidump/fb-dump.test (original)
+++ lldb/trunk/lit/Minidump/fb-dump.test Wed Apr 24 01:09:36 2019
@@ -1,75 +1,96 @@
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp \
-# RUN:   -o 'process plugin dump --all' | \
+# RUN: yaml2obj %s > %t
+# RUN: %lldb -c %t -o 'process plugin dump --all' | \
 # RUN:   FileCheck --check-prefix=CHECK-DIR --check-prefix=CHECK-APPDATA \
 # RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
 # RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
 # RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
 # RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
 # RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp \
-# RUN:   -o 'process plugin dump -a' | \
+# RUN: %lldb -c %t -o 'process plugin dump -a' | \
 # RUN:   FileCheck --check-prefix=CHECK-DIR --check-prefix=CHECK-APPDATA \
 # RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
 # RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
 # RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
 # RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
 # RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp \
-# RUN:   -o 'process plugin dump --facebook' | \
+# RUN: %lldb -c %t -o 'process plugin dump --facebook' | \
 # RUN:   FileCheck --check-prefix=CHECK-APPDATA \
 # RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
 # RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
 # RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
 # RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
 # RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp \
-# RUN:   -o 'process plugin dump --fb-app-data' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-app-data' | \
 # RUN:   FileCheck --check-prefix=CHECK-APPDATA %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-build-id' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-build-id' | \
 # RUN:   FileCheck --check-prefix=CHECK-BUILD %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-version' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-version' | \
 # RUN:   FileCheck --check-prefix=CHECK-VERSION %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-java-stack' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-java-stack' | \
 # RUN:   FileCheck --check-prefix=CHECK-JAVA %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-dalvik-info' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-dalvik-info' | \
 # RUN:   FileCheck --check-prefix=CHECK-DALVIK %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-unwind-symbols' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-unwind-symbols' | \
 # RUN:   FileCheck --check-prefix=CHECK-UNWIND %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-error-log' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-error-log' | \
 # RUN:   FileCheck --check-prefix=CHECK-ERROR %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-app-state-log' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-app-state-log' | \
 # RUN:   FileCheck --check-prefix=CHECK-APPSTATE %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-abort-reason' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-abort-reason' | \
 # RUN:   FileCheck --check-prefix=CHECK-ABORT %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-thread-name' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-thread-name' | \
 # RUN:   FileCheck --check-prefix=CHECK-THREAD %s
-# RUN: %lldb -c %p/Inputs/fb-dump-content.dmp  \
-# RUN:   -o 'process plugin dump --fb-logcat' | \
+# RUN: %lldb -c %t -o 'process plugin dump --fb-logcat' | \
 # RUN:   FileCheck --check-prefix=CHECK-LOGCAT %s
 # CHECK-DIR:      RVA        SIZE       TYPE       StreamType
 # CHECK-DIR-NEXT: ---------- ---------- ---------- --------------------------
-# CHECK-DIR-NEXT: 0x000000bc 0x00000038 0x00000007 SystemInfo
-# CHECK-DIR-NEXT: 0x000000f4 0x00000018 0x0000000f MiscInfo
-# CHECK-DIR-NEXT: 0x0000010c 0x00000013 0xfacecb00 FacebookDumpErrorLog
-# CHECK-DIR-NEXT: 0x0000011f 0x00000015 0xfacee000 FacebookThreadName
-# CHECK-DIR-NEXT: 0x00000134 0x00000010 0xface1ca7 FacebookLogcat
-# CHECK-DIR-NEXT: 0x00000144 0x00000017 0xfacecccc FacebookAppStateLog
-# CHECK-DIR-NEXT: 0x0000015b 0x00000016 0xfacedead FacebookAbortReason
-# CHECK-DIR-NEXT: 0x00000171 0x00000039 0xfacecafa FacebookAppCustomData
-# CHECK-DIR-NEXT: 0x000001aa 0x00000005 0xfacecafb FacebookBuildID
-# CHECK-DIR-NEXT: 0x000001af 0x0000000d 0xfacecafc FacebookAppVersionName
-# CHECK-DIR-NEXT: 0x000001bc 0x00000019 0xfacecafd FacebookJavaStack
-# CHECK-DIR-NEXT: 0x000001d5 0x00000015 0xfacecafe FacebookDalvikInfo
-# CHECK-DIR-NEXT: 0x000001ea 0x00000005 0xfacecaff FacebookUnwindSymbols
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000038 0x00000007 SystemInfo
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x0000000f MiscInfo
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000013 0xfacecb00 FacebookDumpErrorLog
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000015 0xfacee000 FacebookThreadName
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000010 0xface1ca7 FacebookLogcat
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000017 0xfacecccc FacebookAppStateLog
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000016 0xfacedead FacebookAbortReason
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000039 0xfacecafa FacebookAppCustomData
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000005 0xfacecafb FacebookBuildID
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000000d 0xfacecafc FacebookAppVersionName
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000019 0xfacecafd FacebookJavaStack
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000015 0xfacecafe FacebookDalvikInfo
+# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000005 0xfacecaff FacebookUnwindSymbols
+
+--- !minidump
+Streams:         
+  - Type:            SystemInfo
+    Processor Arch:  ARM64
+    Platform ID:     Linux
+    CSD Version:     '15E216'
+    CPU:             
+      CPUID:           0x00000000
+  - Type:            MiscInfo
+    Content:         00000000010000007B000000000000000000000000000000
+  - Type:            FacebookDumpErrorLog
+    Content:         46616365626F6F6B206572726F72206C6F6700
+  - Type:            FacebookThreadName
+    Content:         46616365626F6F6B20746872656164206E616D6500
+  - Type:            FacebookLogcat
+    Content:         46616365626F6F6B206C6F6763617400
+  - Type:            FacebookAppStateLog
+    Content:         46616365626F6F6B20617070207374617465206C6F6700
+  - Type:            FacebookAbortReason
+    Content:         46616365626F6F6B2061626F727420726561736F6E00
+  - Type:            FacebookAppCustomData
+    Content:         7B22676C6F62616C223A207B2246696E6765727072696E74223A22696E76616C6964206465766963652066696E6765727072696E74227D7D00
+  - Type:            FacebookBuildID
+    Content:         '0403020100'
+  - Type:            FacebookAppVersionName
+    Content:         3230372E302E302E302E383600
+  - Type:            FacebookJavaStack
+    Content:         46616365626F6F6B206A61766120737461636B20696E666F00
+  - Type:            FacebookDalvikInfo
+    Content:         46616365626F6F6B2064616C76696B20696E666F00
+  - Type:            FacebookUnwindSymbols
+    Content:         '1122334400'
+...
 
 # CHECK-APPDATA:      Facebook App Data:
 # CHECK-APPDATA-NEXT: {"global": {"Fingerprint":"invalid device fingerprint"}}




More information about the lldb-commits mailing list