From c6ee5835d640e3ea1fae871e80838bc84547bf39 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 5 Apr 2013 08:30:13 +0000 Subject: [PATCH] Add a basic test for llvm-symbolizer tool llvm-svn: 178858 --- llvm/test/DebugInfo/llvm-symbolizer.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 llvm/test/DebugInfo/llvm-symbolizer.test diff --git a/llvm/test/DebugInfo/llvm-symbolizer.test b/llvm/test/DebugInfo/llvm-symbolizer.test new file mode 100644 index 000000000000..7776ec597831 --- /dev/null +++ b/llvm/test/DebugInfo/llvm-symbolizer.test @@ -0,0 +1,21 @@ +RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input +RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input +RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input + +RUN: llvm-symbolizer --functions --inlining --demangle=false < %t.input \ +RUN: | FileCheck %s + +REQUIRES: shell + +CHECK: main +CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16 +CHECK: _Z1cv +CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2 +CHECK: inlined_h +CHECK-NEXT: dwarfdump-inl-test.h:2 +CHECK-NEXT: inlined_g +CHECK-NEXT: dwarfdump-inl-test.h:7 +CHECK-NEXT: inlined_f +CHECK-NEXT: dwarfdump-inl-test.cc:3 +CHECK-NEXT: main +CHECK-NEXT: dwarfdump-inl-test.cc:8