]> granicus.if.org Git - clang/commit
[Driver] Add unit tests for Distro detection
authorMichal Gorny <mgorny@gentoo.org>
Mon, 28 Nov 2016 21:11:22 +0000 (21:11 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Mon, 28 Nov 2016 21:11:22 +0000 (21:11 +0000)
commitd9ef432625798f824cb2089139f605b84bac0d46
tree09c7f9f3ab26747e6936e4322fd0c6462a54fd9a
parent059de9dbb95caea8a2e46827ecf19be09c9c9fed
[Driver] Add unit tests for Distro detection

Add a set of unit tests for the distro detection code. The tests use an
in-memory virtual filesystems resembling release files for various
distributions supported. All release files are provided (not only the
ones directly used) in order to guarantee that one of the rules will not
mistakenly recognize the distribution incorrectly due to the additional
files (e.g. Ubuntu as Debian).

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288062 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Driver/CMakeLists.txt
unittests/Driver/DistroTest.cpp [new file with mode: 0644]