summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-symbolizer
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-12-09 11:43:47 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-12-09 12:24:23 +0000
commitdba420bc05aec26c2b6d060cfd186169da30b5f7 (patch)
tree57a87953f132727241eb798fe1b9537223a50ba5 /llvm/test/tools/llvm-symbolizer
parent0d1490bf6a68d9397a6402c8f702e30f07adacf1 (diff)
downloadbcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.tar.gz
bcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.zip
[test][tools] Add missing and improve testing
Mostly this adds testing for certain aliases in more explicit ways. There are also a few tidy-ups, and additions of missing testing, where the feature was either not tested at all, or not tested explicitly and sufficiently. Reviewed by: MaskRay, rupprecht, grimar Differential Revision: https://reviews.llvm.org/D71116
Diffstat (limited to 'llvm/test/tools/llvm-symbolizer')
-rw-r--r--llvm/test/tools/llvm-symbolizer/functions.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-symbolizer/functions.s b/llvm/test/tools/llvm-symbolizer/functions.s
index 93cca51a0c1..3093d801d39 100644
--- a/llvm/test/tools/llvm-symbolizer/functions.s
+++ b/llvm/test/tools/llvm-symbolizer/functions.s
@@ -3,13 +3,18 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: llvm-symbolizer 0 --obj=%t.o | FileCheck %s --check-prefix=LINKAGE
+# RUN: llvm-symbolizer 0 -f --obj=%t.o | FileCheck %s --check-prefix=LINKAGE
# RUN: llvm-symbolizer 0 --functions --obj=%t.o | FileCheck %s --check-prefix=LINKAGE
+# RUN: llvm-symbolizer 0 -f=linkage --obj=%t.o | FileCheck %s --check-prefix=LINKAGE
# RUN: llvm-symbolizer 0 --functions=linkage --obj=%t.o | FileCheck %s --check-prefix=LINKAGE
+# RUN: llvm-symbolizer 0 -f=short --obj=%t.o | FileCheck %s --check-prefix=SHORT
# RUN: llvm-symbolizer 0 --functions=short --obj=%t.o | FileCheck %s --check-prefix=SHORT
+# RUN: llvm-symbolizer 0 -f=none --obj=%t.o | FileCheck %s --check-prefix=NONE
# RUN: llvm-symbolizer 0 --functions=none --obj=%t.o | FileCheck %s --check-prefix=NONE
## Characterise behaviour for no '=' sign. llvm-symbolizer treats the next option as an
## input address, and just prints it.
+# RUN: llvm-symbolizer 0 -f none --obj=%t.o | FileCheck %s --check-prefixes=LINKAGE,ERR
# RUN: llvm-symbolizer 0 --functions none --obj=%t.o | FileCheck %s --check-prefixes=LINKAGE,ERR
# LINKAGE: {{^}}foo(int){{$}}
OpenPOWER on IntegriCloud