forked from OSchip/llvm-project
[gn build] Add more build files for LLVM unittests
A fairly random assortment of build files that are easy. Differential Revision: https://reviews.llvm.org/D56213 llvm-svn: 350412
This commit is contained in:
parent
2c497b51bc
commit
47d9ff731f
|
@ -19,26 +19,37 @@ group("unittests") {
|
||||||
#"DebugInfo/PDB:DebugInfoPDBTests",
|
#"DebugInfo/PDB:DebugInfoPDBTests",
|
||||||
"Demangle:DemangleTests",
|
"Demangle:DemangleTests",
|
||||||
|
|
||||||
# FIXME: Add more:
|
# FIXME: Add.
|
||||||
#"ExecutionEngine:ExecutionEngineTests",
|
#"ExecutionEngine:ExecutionEngineTests",
|
||||||
#"ExecutionEngine/MCJIT:MCJITTests",
|
#"ExecutionEngine/MCJIT:MCJITTests",
|
||||||
#"ExecutionEngine/Orc:OrcJITTests",
|
#"ExecutionEngine/Orc:OrcJITTests",
|
||||||
#"FuzzMutate:FuzzMutateTests",
|
"FuzzMutate:FuzzMutateTests",
|
||||||
#"IR:IRTests",
|
"IR:IRTests",
|
||||||
#"LineEditor:LineEditorTests",
|
"LineEditor:LineEditorTests",
|
||||||
#"MC:MCTests",
|
"Linker:LinkerTests",
|
||||||
|
"MC:MCTests",
|
||||||
|
|
||||||
|
# FIXME: Add.
|
||||||
#"MI:MITests",
|
#"MI:MITests",
|
||||||
#"Object:ObjectTests",
|
"Object:ObjectTests",
|
||||||
#"ObjectYAML:ObjectYAMLTests",
|
"ObjectYAML:ObjectYAMLTests",
|
||||||
#"Option:OptionTests",
|
"Option:OptionTests",
|
||||||
|
|
||||||
|
# FIXME: Add more:
|
||||||
|
#"OptRemarks:OptRemarksTests",
|
||||||
#"Passes:PluginsTests",
|
#"Passes:PluginsTests",
|
||||||
#"ProfileData:ProfileDataTests",
|
|
||||||
|
"ProfileData:ProfileDataTests",
|
||||||
|
|
||||||
|
# FIXME: Add more:
|
||||||
#"Support:SupportTests",
|
#"Support:SupportTests",
|
||||||
#"Support/DynamicLibrary:DynamicLibraryTests",
|
#"Support/DynamicLibrary:DynamicLibraryTests",
|
||||||
#"Transforms/IPO:IPOTests",
|
#"Transforms/IPO:IPOTests",
|
||||||
#"Transforms/Scalar:ScalarTests",
|
#"Transforms/Scalar:ScalarTests",
|
||||||
#"Transforms/Utils:UtilsTests",
|
#"Transforms/Utils:UtilsTests",
|
||||||
#"XRay:XRayTests",
|
"XRay:XRayTests",
|
||||||
|
|
||||||
|
# FIXME: Add more:
|
||||||
#"tools/llvm-cfi-verify:CFIVerifyTests",
|
#"tools/llvm-cfi-verify:CFIVerifyTests",
|
||||||
#"tools/llvm-exegesis:LLVMExegesisTests",
|
#"tools/llvm-exegesis:LLVMExegesisTests",
|
||||||
]
|
]
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("FuzzMutateTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/AsmParser",
|
||||||
|
"//llvm/lib/FuzzMutate",
|
||||||
|
"//llvm/lib/IR",
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"OperationsTest.cpp",
|
||||||
|
"RandomIRBuilderTest.cpp",
|
||||||
|
"ReservoirSamplerTest.cpp",
|
||||||
|
"StrategiesTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("IRTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/Analysis",
|
||||||
|
"//llvm/lib/AsmParser",
|
||||||
|
"//llvm/lib/IR",
|
||||||
|
"//llvm/lib/Passes",
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
"//llvm/lib/Testing/Support",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"AsmWriterTest.cpp",
|
||||||
|
"AttributesTest.cpp",
|
||||||
|
"BasicBlockTest.cpp",
|
||||||
|
"CFGBuilder.cpp",
|
||||||
|
"ConstantRangeTest.cpp",
|
||||||
|
"ConstantsTest.cpp",
|
||||||
|
"DebugInfoTest.cpp",
|
||||||
|
"DebugTypeODRUniquingTest.cpp",
|
||||||
|
"DomTreeUpdaterTest.cpp",
|
||||||
|
"DominatorTreeBatchUpdatesTest.cpp",
|
||||||
|
"DominatorTreeTest.cpp",
|
||||||
|
"FunctionTest.cpp",
|
||||||
|
"IRBuilderTest.cpp",
|
||||||
|
"InstructionsTest.cpp",
|
||||||
|
"IntrinsicsTest.cpp",
|
||||||
|
"LegacyPassManagerTest.cpp",
|
||||||
|
"MDBuilderTest.cpp",
|
||||||
|
"ManglerTest.cpp",
|
||||||
|
"MetadataTest.cpp",
|
||||||
|
"ModuleTest.cpp",
|
||||||
|
"PassBuilderCallbacksTest.cpp",
|
||||||
|
"PassManagerTest.cpp",
|
||||||
|
"PatternMatch.cpp",
|
||||||
|
"TypeBuilderTest.cpp",
|
||||||
|
"TypesTest.cpp",
|
||||||
|
"UseTest.cpp",
|
||||||
|
"UserTest.cpp",
|
||||||
|
"ValueHandleTest.cpp",
|
||||||
|
"ValueMapTest.cpp",
|
||||||
|
"ValueTest.cpp",
|
||||||
|
"VerifierTest.cpp",
|
||||||
|
"WaymarkTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("LineEditorTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/LineEditor",
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"LineEditor.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("LinkerTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/AsmParser",
|
||||||
|
"//llvm/lib/IR",
|
||||||
|
"//llvm/lib/Linker",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"LinkModulesTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("MCTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/MC",
|
||||||
|
"//llvm/lib/MC/MCDisassembler",
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
"//llvm/lib/Target:TargetsToBuild",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"Disassembler.cpp",
|
||||||
|
"DwarfLineTables.cpp",
|
||||||
|
"StringTableBuilderTest.cpp",
|
||||||
|
"TargetRegistry.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("ObjectTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/Object",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"SymbolSizeTest.cpp",
|
||||||
|
"SymbolicFileTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("ObjectYAMLTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/ObjectYAML",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"YAMLTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
import("//llvm/utils/TableGen/tablegen.gni")
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
tablegen("Opts") {
|
||||||
|
visibility = [ ":OptionTests" ]
|
||||||
|
args = [ "-gen-opt-parser-defs" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
unittest("OptionTests") {
|
||||||
|
deps = [
|
||||||
|
":Opts",
|
||||||
|
"//llvm/lib/Option",
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"OptionParsingTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("ProfileDataTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/IR",
|
||||||
|
"//llvm/lib/ProfileData",
|
||||||
|
"//llvm/lib/ProfileData/Coverage",
|
||||||
|
"//llvm/lib/Testing/Support",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"CoverageMappingTest.cpp",
|
||||||
|
"InstrProfTest.cpp",
|
||||||
|
"SampleProfTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("XRayTests") {
|
||||||
|
deps = [
|
||||||
|
"//llvm/lib/Support",
|
||||||
|
"//llvm/lib/Testing/Support",
|
||||||
|
"//llvm/lib/XRay",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"FDRBlockIndexerTest.cpp",
|
||||||
|
"FDRBlockVerifierTest.cpp",
|
||||||
|
"FDRProducerConsumerTest.cpp",
|
||||||
|
"FDRRecordPrinterTest.cpp",
|
||||||
|
"FDRRecordsTest.cpp",
|
||||||
|
"FDRTraceWriterTest.cpp",
|
||||||
|
"GraphTest.cpp",
|
||||||
|
"ProfileTest.cpp",
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue