//===- unittests/Driver/DistroTest.cpp --- ToolChains tests ---------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Unit tests for Distro detection. // //===----------------------------------------------------------------------===// #include "clang/Driver/Distro.h" #include "llvm/Support/VirtualFileSystem.h" #include "llvm/Support/raw_ostream.h" #include "llvm/TargetParser/Host.h" #include "gtest/gtest.h" usingnamespaceclang; usingnamespaceclang::driver; namespace { // The tests include all release-related files for each distribution // in the VFS, in order to make sure that earlier tests do not // accidentally result in incorrect distribution guess. TEST(DistroTest, DetectUbuntu) { … } TEST(DistroTest, DetectRedhat) { … } TEST(DistroTest, DetectOpenSUSE) { … } TEST(DistroTest, DetectDebian) { … } TEST(DistroTest, DetectExherbo) { … } TEST(DistroTest, DetectArchLinux) { … } TEST(DistroTest, DetectGentoo) { … } TEST(DistroTest, DetectWindowsAndCrossCompile) { … } TEST(DistroTest, DetectLinux) { … } } // end anonymous namespace