Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 160) sorted by relevance

1234567

/build/soong/jar/
Djar_test.go23 func TestGetJavaPackage(t *testing.T) { argument
66 t.Run(tt.name, func(t *testing.T) {
80 func Test_javaIdentRune(t *testing.T) { argument
140 check := func(t *testing.T, ch rune, i int, want bool) {
147 t.Run("first", func(t *testing.T) {
148 t.Run("valid", func(t *testing.T) {
150 t.Run(string(ch), func(t *testing.T) {
156 t.Run("invalid", func(t *testing.T) {
158 t.Run(string(ch), func(t *testing.T) {
165 t.Run("part", func(t *testing.T) {
[all …]
/build/blueprint/pathtools/
Dfs_test.go49 func TestMockFs_followSymlinks(t *testing.T) { argument
97 t.Run(test.from, func(t *testing.T) {
106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) { argument
111 run := func(t *testing.T, fs FileSystem) {
112 t.Run("relpath", func(t *testing.T) {
115 t.Run("abspath", func(t *testing.T) {
120 t.Run("mock", func(t *testing.T) {
124 t.Run("os", func(t *testing.T) {
130 t.Run("os relative srcDir", func(t *testing.T) {
134 t.Run("os absolute srcDir", func(t *testing.T) {
[all …]
Dglob_test.go474 func TestMockGlob(t *testing.T) { argument
500 t.Run(testCase.pattern, func(t *testing.T) {
506 func TestGlob(t *testing.T) { argument
510 t.Run(testCase.pattern, func(t *testing.T) {
539 func TestMockGlobEscapes(t *testing.T) { argument
559 t.Run(testCase.pattern, func(t *testing.T) {
566 func TestGlobEscapes(t *testing.T) { argument
570 t.Run(testCase.pattern, func(t *testing.T) {
590 func TestMockGlobSymlinks(t *testing.T) { argument
608 t.Run(testCase.pattern, func(t *testing.T) {
[all …]
/build/soong/finder/fs/
Dtest.go26 func Write(t *testing.T, path string, content string, filesystem *MockFs) { argument
35 func Create(t *testing.T, path string, filesystem *MockFs) { argument
39 func Delete(t *testing.T, path string, filesystem *MockFs) { argument
46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) { argument
53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) { argument
60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) { argument
72 func Read(t *testing.T, path string, filesystem *MockFs) string { argument
84 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time { argument
92 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) { argument
99 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) { argument
[all …]
/build/soong/ui/build/paths/
Dlogs_test.go28 func TestSendLog(t *testing.T) { argument
29 t.Run("Short name", func(t *testing.T) {
40 testLongName := func(t *testing.T, lookup socketAddrFunc) {
52 t.Run("Long name", func(t *testing.T) {
57 t.Run("Long name proc fallback", func(t *testing.T) {
62 t.Run("Long name tmp fallback", func(t *testing.T) {
67 func testSendLog(t *testing.T, socket string, lookup socketAddrFunc) { argument
107 func TestSendLogError(t *testing.T) { argument
115 t.Run("Missing file", func(t *testing.T) {
120 t.Run("Regular file", func(t *testing.T) {
[all …]
/build/
Denvsetup.sh44 local T=$(gettop)
47 …for i in `cat $T/build/envsetup.sh | sed -n "/^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p…
56 local T=$(gettop)
58 …cached_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_build_…
59 …cached_abs_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_ab…
61 build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
108 local T=$(gettop)
109 if [ ! "$T" ]; then
113 (\cd $T; build/soong/soong_ui.bash --dumpvar-mode --abs $1)
125 local T=$(gettop)
[all …]
/build/make/
Denvsetup.sh44 local T=$(gettop)
47 …for i in `cat $T/build/envsetup.sh | sed -n "/^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p…
56 local T=$(gettop)
58 …cached_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_build_…
59 …cached_abs_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_ab…
61 build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
108 local T=$(gettop)
109 if [ ! "$T" ]; then
113 (\cd $T; build/soong/soong_ui.bash --dumpvar-mode --abs $1)
125 local T=$(gettop)
[all …]
/build/make/tools/droiddoc/templates-pdk/assets/
Djquery-resizable.min.js12 …<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area… argument
19T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContex… argument
/build/soong/bpfix/bpfix/
Dbpfix_test.go55 func implFilterListTest(t *testing.T, local_include_dirs []string, export_include_dirs []string, ex… argument
118 func TestSimplifyKnownVariablesDuplicatingEachOther(t *testing.T) { argument
128 func runPass(t *testing.T, in, out string, innerTest func(*Fixer) error) { argument
171 func TestMergeMatchingProperties(t *testing.T) { argument
252 t.Run(test.name, func(t *testing.T) {
260 func TestReorderCommonProperties(t *testing.T) { argument
338 t.Run(test.name, func(t *testing.T) {
346 func TestRemoveMatchingModuleListProperties(t *testing.T) { argument
491 t.Run(test.name, func(t *testing.T) {
501 func TestReplaceJavaStaticLibs(t *testing.T) { argument
[all …]
/build/soong/android/
Dutil_test.go62 func TestFirstUniqueStrings(t *testing.T) { argument
63 f := func(t *testing.T, imp func([]string) []string, in, want []string) {
75 t.Run("list", func(t *testing.T) {
78 t.Run("map", func(t *testing.T) {
122 func TestLastUniqueStrings(t *testing.T) { argument
134 func TestJoinWithPrefix(t *testing.T) { argument
160 t.Run(testCase.name, func(t *testing.T) {
173 func TestIndexList(t *testing.T) { argument
199 t.Run(testCase.key, func(t *testing.T) {
212 func TestInList(t *testing.T) { argument
[all …]
Ddepset_test.go66 func TestDepSet(t *testing.T) { argument
76 depSet func(t *testing.T, order DepSetOrder) *DepSet
81 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
90 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
99 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
109 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
110 assertEquals := func(t *testing.T, w, g Paths) {
134 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
144 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
160 depSet: func(t *testing.T, order DepSetOrder) *DepSet {
[all …]
Donceper_test.go22 func TestOncePer_Once(t *testing.T) { argument
38 func TestOncePer_Once_wait(t *testing.T) { argument
53 func TestOncePer_Get(t *testing.T) { argument
69 func TestOncePer_Get_panic(t *testing.T) { argument
84 func TestOncePer_Get_wait(t *testing.T) { argument
99 func TestOncePer_OnceStringSlice(t *testing.T) { argument
115 func TestOncePer_Once2StringSlice(t *testing.T) { argument
131 func TestNewOnceKey(t *testing.T) { argument
148 func TestNewCustomOnceKey(t *testing.T) { argument
168 func TestOncePerReentrant(t *testing.T) { argument
[all …]
Dnamespace_test.go26 func TestDependingOnModuleInSameNamespace(t *testing.T) { argument
50 func TestDependingOnModuleInRootNamespace(t *testing.T) { argument
72 func TestImplicitlyImportRootNamespace(t *testing.T) { argument
94 func TestDependingOnBlueprintModuleInRootNamespace(t *testing.T) { argument
116 func TestDependingOnModuleInImportedNamespace(t *testing.T) { argument
145 func TestDependingOnModuleInNonImportedNamespace(t *testing.T) { argument
185 func TestDependingOnModuleByFullyQualifiedReference(t *testing.T) { argument
212 func TestSameNameInTwoNamespaces(t *testing.T) { argument
262 func TestSearchOrder(t *testing.T) { argument
350 func TestTwoNamespacesCanImportEachOther(t *testing.T) { argument
[all …]
/build/soong/etc/
Dprebuilt_etc_test.go52 func testPrebuiltEtcContext(t *testing.T, bp string) (*android.TestContext, android.Config) { argument
74 func testPrebuiltEtc(t *testing.T, bp string) (*android.TestContext, android.Config) { argument
86 func testPrebuiltEtcError(t *testing.T, pattern, bp string) { argument
104 func TestPrebuiltEtcVariants(t *testing.T) { argument
138 func TestPrebuiltEtcOutputPath(t *testing.T) { argument
153 func TestPrebuiltEtcGlob(t *testing.T) { argument
177 func TestPrebuiltEtcAndroidMk(t *testing.T) { argument
213 func TestPrebuiltEtcRelativeInstallPathInstallDirPath(t *testing.T) { argument
229 func TestPrebuiltEtcCannotSetRelativeInstallPathAndSubDir(t *testing.T) { argument
240 func TestPrebuiltEtcHost(t *testing.T) { argument
[all …]
/build/soong/ui/build/
Denvironment_test.go23 func TestEnvUnset(t *testing.T) { argument
32 func TestEnvUnsetMissing(t *testing.T) { argument
41 func TestEnvSet(t *testing.T) { argument
50 func TestEnvSetDup(t *testing.T) { argument
59 func TestEnvAllow(t *testing.T) { argument
75 func TestEnvAppendFromKati(t *testing.T) { argument
Dconfig_test.go41 func TestConfigParseArgsJK(t *testing.T) { argument
83 t.Run(strings.Join(tc.args, " "), func(t *testing.T) {
113 func TestConfigParseArgsVars(t *testing.T) { argument
157 t.Run(strings.Join(tc.args, " "), func(t *testing.T) {
182 func TestConfigCheckTopDir(t *testing.T) { argument
225 t.Run(tt.description, func(t *testing.T) {
278 func TestConfigConvertToTarget(t *testing.T) { argument
306 t.Run(tt.description, func(t *testing.T) {
315 func setTop(t *testing.T, dir string) func() { argument
326 func createBuildFiles(t *testing.T, topDir string, buildFiles []string) { argument
[all …]
/build/soong/java/
Djava_test.go109 func run(t *testing.T, ctx *android.TestContext, config android.Config) { argument
122 func testJavaError(t *testing.T, pattern string, bp string) (*android.TestContext, android.Config) { argument
127 func testJavaErrorWithConfig(t *testing.T, pattern string, config android.Config) (*android.TestCon… argument
151 func testJavaWithFS(t *testing.T, bp string, fs map[string][]byte) (*android.TestContext, android.C… argument
156 func testJava(t *testing.T, bp string) (*android.TestContext, android.Config) { argument
161 func testJavaWithConfig(t *testing.T, config android.Config) (*android.TestContext, android.Config)… argument
180 func TestJavaLinkType(t *testing.T) { argument
268 func TestSimple(t *testing.T) { argument
312 func TestExportedPlugins(t *testing.T) { argument
377 t.Run(test.name, func(t *testing.T) {
[all …]
/build/blueprint/
Dmodule_ctx_test.go60 func TestAliases(t *testing.T) { argument
113 t.Run("simple", func(t *testing.T) {
135 t.Run("chained", func(t *testing.T) {
159 t.Run("chained2", func(t *testing.T) {
183 t.Run("removed dangling alias", func(t *testing.T) {
199 func expectedErrors(t *testing.T, errs []error, expectedMessages ...string) { argument
213 func TestCheckBlueprintSyntax(t *testing.T) { argument
218 t.Run("valid", func(t *testing.T) {
227 t.Run("syntax error", func(t *testing.T) {
237 t.Run("unknown module type", func(t *testing.T) {
[all …]
/build/soong/finder/
Dfinder_test.go34 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder { argument
38 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea… argument
46 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) … argument
59 func finderWithSameParams(t *testing.T, original *Finder) *Finder { argument
67 func finderAndErrorWithSameParams(t *testing.T, original *Finder) (*Finder, error) { argument
79 func runSimpleTest(t *testing.T, existentPaths []string, expectedMatches []string) { argument
108 func testAgainstSeveralThreadcounts(t *testing.T, tester func(t *testing.T, numThreads int)) { argument
116 t.Run(testName, func(t *testing.T) {
124 func TestSingleFile(t *testing.T) { argument
131 func TestIncludeFiles(t *testing.T) { argument
[all …]
/build/soong/
Dsoong_ui.bash37 T=
40 T=`PWD= /bin/pwd -P`
43 if [ -f "$T/$TOPFILE" ]; then
44 echo $T
/build/soong/rust/
Drust_test.go74 func testRust(t *testing.T, bp string) *android.TestContext { argument
78 func testRustCov(t *testing.T, bp string) *android.TestContext { argument
82 func testRustContext(t *testing.T, bp string, coverage bool) *android.TestContext { argument
108 func testRustError(t *testing.T, pattern string, bp string) { argument
136 func TestLibNameFromFilePath(t *testing.T) { argument
155 func TestLinkPathFromFilePath(t *testing.T) { argument
166 func TestDepsTracking(t *testing.T) { argument
227 func TestSourceProviderDeps(t *testing.T) { argument
294 func TestSourceProviderTargetMismatch(t *testing.T) { argument
315 func TestProcMacroDeviceDeps(t *testing.T) { argument
[all …]
/build/soong/cc/
Dlibrary_test.go24 func TestLibraryReuse(t *testing.T) { argument
25 t.Run("simple", func(t *testing.T) {
51 t.Run("extra static source", func(t *testing.T) {
77 t.Run("extra shared source", func(t *testing.T) {
103 t.Run("extra static cflags", func(t *testing.T) {
129 t.Run("extra shared cflags", func(t *testing.T) {
155 t.Run("global cflags for reused generated sources", func(t *testing.T) {
192 func TestStubsVersions(t *testing.T) { argument
215 func TestStubsVersions_NotSorted(t *testing.T) { argument
230 func TestStubsVersions_ParseError(t *testing.T) { argument
/build/soong/apex/
Dvndk_test.go11 func TestVndkApexForVndkLite(t *testing.T) { argument
64 func TestVndkApexUsesVendorVariant(t *testing.T) { argument
85 ensureFileSrc := func(t *testing.T, files []fileInApex, path, src string) {
96 t.Run("VNDK lib doesn't have an apex variant", func(t *testing.T) {
109 …NDK APEX gathers only vendor variants even if product variants are available", func(t *testing.T) {
119 t.Run("VNDK APEX supports coverage variants", func(t *testing.T) {
Dapex_test.go49 func testApexError(t *testing.T, pattern, bp string, handlers ...testCustomizer) { argument
66 func testApex(t *testing.T, bp string, handlers ...testCustomizer) (*android.TestContext, android.C… argument
126 func testApexContext(_ *testing.T, bp string, handlers ...testCustomizer) (*android.TestContext, an… argument
282 func ensureEquals(t *testing.T, result string, expected string) { argument
290 func ensureContains(t *testing.T, result string, expected string) { argument
298 func ensureContainsOnce(t *testing.T, result string, expected string) { argument
307 func ensureNotContains(t *testing.T, result string, notExpected string) { argument
314 func ensureMatches(t *testing.T, result string, expectedRex string) { argument
325 func ensureListContains(t *testing.T, result []string, expected string) { argument
332 func ensureListNotContains(t *testing.T, result []string, notExpected string) { argument
[all …]
/build/blueprint/proptools/
Dclone_test.go75 in: &struct{ S []struct{ T string } }{
76 S: []struct{ T string }{
80 out: &struct{ S []struct{ T string } }{
81 S: []struct{ T string }{
276 func TestCloneProperties(t *testing.T) { argument
334 in: &struct{ S []struct{ T string } }{
335 S: []struct{ T string }{
339 out: &struct{ S []struct{ T string } }{
340 S: []struct{ T string }(nil),
498 func TestCloneEmptyProperties(t *testing.T) { argument
[all …]

1234567