OSDN Git Service

Add opt-viewer testing
authorAdam Nemet <anemet@apple.com>
Mon, 27 Nov 2017 19:00:29 +0000 (19:00 +0000)
committerAdam Nemet <anemet@apple.com>
Mon, 27 Nov 2017 19:00:29 +0000 (19:00 +0000)
commit1e5f63d6920b4d9e2251e608a385634993d73cc1
tree1ce68d6bbd8fbba4849529430dfd681cb09d84d1
parentaa1bb20e604af9e3e0857b51eb51287df63f4309
Add opt-viewer testing

Detects whether we have the Python modules (pygments, yaml) required by
opt-viewer and hooks this up to REQUIRES.

This fixes https://bugs.llvm.org/show_bug.cgi?id=34129 (the lack of opt-viewer
testing).

It's also related to https://github.com/apple/swift/pull/12938 and the idea is
to expose LLVM_HAVE_OPT_VIEWER_MODULES to the Swift cmake.

Differential Revision: https://reviews.llvm.org/D40202

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319073 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
cmake/config-ix.cmake
test/lit.cfg.py
test/lit.site.cfg.py.in
test/tools/opt-viewer/Inputs/basic/or.c [new file with mode: 0644]
test/tools/opt-viewer/Inputs/basic/or.h [new file with mode: 0644]
test/tools/opt-viewer/Inputs/basic/or.yaml [new file with mode: 0644]
test/tools/opt-viewer/Outputs/basic/basic_or.c.html [new file with mode: 0644]
test/tools/opt-viewer/Outputs/basic/basic_or.h.html [new file with mode: 0644]
test/tools/opt-viewer/Outputs/basic/index.html [new file with mode: 0644]
test/tools/opt-viewer/Outputs/basic/style.css [new file with mode: 0644]
test/tools/opt-viewer/basic.test [new file with mode: 0644]
test/tools/opt-viewer/lit.local.cfg [new file with mode: 0644]