Add debuginfo-tests that use cdb on Windows
authorReid Kleckner <rnk@google.com>
Tue, 28 May 2019 23:03:33 +0000 (23:03 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 28 May 2019 23:03:33 +0000 (23:03 +0000)
commit75d38f1e4894b3835258810847c59df78c42d549
treee1f5a8e9932ae8c40ada9cf5d1004e66db1970f2
parentb73ea75b384df86d6db36aff02e7f5e5f744c48d
Add debuginfo-tests that use cdb on Windows

This is an initial prototype of how we can run debugger integration
tests on Windows. cdb and windbg share a command language and debugger
engine. Visual Studio has its own, but we should at least be able to use
cdb as the basis for optimized debug info integration tests.

There's a lot of work to do here still. For example:
- Make fewer assumptions about the SDK location
- Don't assume x64 (important, I need x86 testing)
- More environment isolation, have lit setup vcvars instead of passing
  LIB and INCLUDE down.
- Write a .py file to replace the grep+sed RUN line

But, this seemed like a good enough concept to commit as is, since it's
useful to me already.

Reviewers: aprantl, zturner

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

llvm-svn: 361889
debuginfo-tests/CMakeLists.txt
debuginfo-tests/lit.cfg.py
debuginfo-tests/lit.site.cfg.py.in
debuginfo-tests/win_cdb/README.txt [new file with mode: 0644]
debuginfo-tests/win_cdb/hello.c [new file with mode: 0644]
debuginfo-tests/win_cdb/lit.local.cfg.py [new file with mode: 0644]
debuginfo-tests/win_cdb/realigned-frame.cpp [new file with mode: 0644]