HomePhabricator

[Driver] Add unit tests for Distro detection

Description

[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

Details

Committed
mgornyNov 28 2016, 1:11 PM
Differential Revision
D25869: [Driver] Add unit tests for Distro detection
Parents
rL288061: [Driver] Fix recognizing newer OpenSUSE versions
Branches
Unknown
Tags
Unknown