summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-09-13 20:46:23 +0000
committerDevang Patel <dpatel@apple.com>2010-09-13 20:46:23 +0000
commit8c6b9135fc7d5631cce52779a991897a1b76e47a (patch)
tree9c6a4e475c09b4d7f571fa5faf1b94f78e46af58 /test
parent4076dacf1497fb95cb298b9d964fbdbdaf9bde6c (diff)
downloadclang-8c6b9135fc7d5631cce52779a991897a1b76e47a.tar.gz
Recognize .ll as input files.
Handle %test_debuginfo on a RUN command line. This set up now allows one to write small test cases to check debug info. e.g. ; RUN: %clang -O0 -g %s -c -o %t.o ; RUN: %clang %t.o -o %t.out ; RUN: %test_debuginfo %s %t.out define i32 @f1(i32 %i) nounwind ssp { ; DEBUGGER: break f1 ; DEBUGGER: r ; DEBUGGER: p i ; CHECK: $1 = 42 entry: %i.addr = alloca i32, align 4 ... ... } It is also possible now to write test cases in c/c++. The plan is to store these debug info testcases in a separate place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 80f8d5a544..3ed1c7211d 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -16,7 +16,7 @@ execute_external = platform.system() != 'Windows'
config.test_format = lit.formats.ShTest(execute_external)
# suffixes: A list of file extensions to treat as test files.
-config.suffixes = ['.c', '.cpp', '.m', '.mm']
+config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll']
# test_source_root: The root path where tests are located.
config.test_source_root = os.path.dirname(__file__)
@@ -131,6 +131,7 @@ config.substitutions.append( ('%clang_cc1', config.clang + ' -cc1') )
config.substitutions.append( ('%clangxx', ' ' + config.clang +
' -ccc-clang-cxx -ccc-cxx '))
config.substitutions.append( ('%clang', ' ' + config.clang + ' ') )
+config.substitutions.append( ('%test_debuginfo', ' ' + config.llvm_src_root + '/utils/test_debuginfo.pl ') )
# FIXME: Find nicer way to prohibit this.
config.substitutions.append(