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)
commitcbdd238d5e70e88e6d7d552cdc35d17795a3a55d
treee2a458a6801977e55d36edfbc291842b45bd0d86
parented7a9325193288b37a9822f7e2c801e6b8e7ce83
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

llvm-svn: 319073
12 files changed:
llvm/cmake/config-ix.cmake
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in
llvm/test/tools/opt-viewer/Inputs/basic/or.c [new file with mode: 0644]
llvm/test/tools/opt-viewer/Inputs/basic/or.h [new file with mode: 0644]
llvm/test/tools/opt-viewer/Inputs/basic/or.yaml [new file with mode: 0644]
llvm/test/tools/opt-viewer/Outputs/basic/basic_or.c.html [new file with mode: 0644]
llvm/test/tools/opt-viewer/Outputs/basic/basic_or.h.html [new file with mode: 0644]
llvm/test/tools/opt-viewer/Outputs/basic/index.html [new file with mode: 0644]
llvm/test/tools/opt-viewer/Outputs/basic/style.css [new file with mode: 0644]
llvm/test/tools/opt-viewer/basic.test [new file with mode: 0644]
llvm/test/tools/opt-viewer/lit.local.cfg [new file with mode: 0644]