Home
last modified time | relevance | path

Searched refs:buildDir (Results 1 – 25 of 27) sorted by relevance

12

/build/soong/xml/
Dxml_test.go25 config, buildDir := setup(t)
26 defer teardown(buildDir)
47 func setup(t *testing.T) (config android.Config, buildDir string) {
48 buildDir, err := ioutil.TempDir("", "soong_xml_test")
53 config = android.TestArchConfig(buildDir, nil)
58 func teardown(buildDir string) {
59 os.RemoveAll(buildDir)
/build/soong/python/
Dpython_test.go327 config, buildDir := setupBuildEnv(t)
328 defer tearDownBuildEnv(buildDir)
352 expectModule(t, ctx, buildDir, e.name,
387 func expectModule(t *testing.T, ctx *android.TestContext, buildDir, name, variant, expectedSrcsZip … argument
409 if base.srcsZip.String() != strings.Replace(expectedSrcsZip, "@prefix@", buildDir, 1) {
418 expectedDepsSrcsZips[i] = strings.Replace(expectedDepsSrcsZips[i], "@prefix@", buildDir, 1)
431 func setupBuildEnv(t *testing.T) (config android.Config, buildDir string) {
432 buildDir, err := ioutil.TempDir("", buildNamePrefix)
437 config = android.TestConfig(buildDir, nil)
442 func tearDownBuildEnv(buildDir string) {
[all …]
/build/soong/android/
Dprebuilt_etc_test.go28 config, buildDir := setUp(t)
29 defer tearDown(buildDir)
54 func setUp(t *testing.T) (config Config, buildDir string) {
55 buildDir, err := ioutil.TempDir("", "soong_prebuilt_etc_test")
60 config = TestArchConfig(buildDir, nil)
64 func tearDown(buildDir string) {
65 os.RemoveAll(buildDir)
Dvts_config_test.go24 buildDir, err := ioutil.TempDir("", "soong_vts_config_test")
29 config := TestArchConfig(buildDir, nil)
30 defer func() { os.RemoveAll(buildDir) }()
Dpath_properties_test.go86 buildDir, err := ioutil.TempDir("", "soong_path_properties_test")
90 defer os.RemoveAll(buildDir)
94 config := TestArchConfig(buildDir, nil)
Dpaths_test.go652 buildDir string
658 buildDir: "out",
663 buildDir: "out",
669 buildDir: "out",
687 testConfig := TestConfig(test.buildDir, nil)
772 func testPathForModuleSrc(t *testing.T, buildDir string, tests []pathForModuleSrcTestCase) {
775 config := TestConfig(buildDir, nil)
885 buildDir, err := ioutil.TempDir("", "soong_paths_for_module_src_test")
889 defer os.RemoveAll(buildDir)
891 testPathForModuleSrc(t, buildDir, tests)
[all …]
Dconfig.go57 return c.buildDir
99 buildDir string // the path of the build output directory member
200 func TestConfig(buildDir string, env map[string]string) Config {
214 buildDir: buildDir,
230 func TestArchConfigFuchsia(buildDir string, env map[string]string) Config {
231 testConfig := TestConfig(buildDir, env)
247 func TestArchConfig(buildDir string, env map[string]string) Config {
248 testConfig := TestConfig(buildDir, env)
270 func NewConfig(srcDir, buildDir string) (Config, error) {
273 ConfigFileName: filepath.Join(buildDir, configFileName),
[all …]
Dneverallow_test.go161 buildDir, err := ioutil.TempDir("", "soong_neverallow_test")
165 defer os.RemoveAll(buildDir)
167 config := TestConfig(buildDir, nil)
Dprebuilt_test.go129 buildDir, err := ioutil.TempDir("", "soong_prebuilt_test")
133 defer os.RemoveAll(buildDir)
135 config := TestConfig(buildDir, nil)
Drule_builder_test.go365 buildDir, err := ioutil.TempDir("", "soong_test_rule_builder")
369 defer os.RemoveAll(buildDir)
378 config := TestConfig(buildDir, nil)
414 filepath.Join(buildDir, ".intermediates", "foo", "foo"))
418 filepath.Join(buildDir, "baz"))
Dnamespace_test.go616 buildDir, err := ioutil.TempDir("", "soong_namespace_test")
620 defer os.RemoveAll(buildDir)
622 config := TestConfig(buildDir, nil)
/build/soong/java/
Dapp_test.go124 filepath.Join(buildDir, ".intermediates/foo/android_common/foo.apk"),
125 filepath.Join(buildDir, ".intermediates/foo/android_common/foo_v4.apk"),
126 filepath.Join(buildDir, ".intermediates/foo/android_common/foo_v7_hdpi.apk"),
216 buildDir + "/.intermediates/lib2/android_common/package-res.apk",
217 buildDir + "/.intermediates/lib/android_common/package-res.apk",
218 buildDir + "/.intermediates/lib3/android_common/package-res.apk",
229 buildDir + "/.intermediates/lib2/android_common/package-res.apk",
251 buildDir + "/.intermediates/lib2/android_common/package-res.apk",
252 buildDir + "/.intermediates/lib/android_common/package-res.apk",
253 buildDir + "/.intermediates/lib3/android_common/package-res.apk",
[all …]
Dtesting.go23 func TestConfig(buildDir string, env map[string]string) android.Config {
30 config := android.TestArchConfig(buildDir, env)
Ddexpreopt_bootjars_test.go71 expectedInputs[i] = filepath.Join(buildDir, "test_device", expectedInputs[i])
103 expectedOutputs[i] = filepath.Join(buildDir, "test_device", expectedOutputs[i])
Djava_test.go31 var buildDir string var
35 buildDir, err = ioutil.TempDir("", "soong_java_test")
42 os.RemoveAll(buildDir)
57 return TestConfig(buildDir, env)
231 …return filepath.Join(buildDir, ".intermediates", name, "android_common", "turbine-combined", name+…
263 …barTurbine := filepath.Join(buildDir, ".intermediates", "bar", "android_common", "turbine-combined…
264 …bazTurbine := filepath.Join(buildDir, ".intermediates", "baz", "android_common", "turbine-combined…
417 …barTurbine := filepath.Join(buildDir, ".intermediates", "bar", "android_common", "turbine-combined…
615 …fooHeaderJar := filepath.Join(buildDir, ".intermediates", "foo", "android_common", "turbine-combin…
640 …barHeaderJar := filepath.Join(buildDir, ".intermediates", "bar", "android_common", "turbine-combin…
[all …]
Dsdk_test.go72 aidl: "-p" + buildDir + "/framework.aidl",
80 aidl: "-p" + buildDir + "/framework.aidl",
97 aidl: "-p" + buildDir + "/framework.aidl",
248 …system = "--system=" + filepath.Join(buildDir, ".intermediates", testcase.system, "android_common"…
/build/soong/bpf/
Dbpf_test.go26 var buildDir string var
30 buildDir, err = ioutil.TempDir("", "genrule_test")
37 os.RemoveAll(buildDir)
166 config := android.TestArchConfig(buildDir, nil)
/build/soong/cc/
Dtest_data_test.go112 buildDir, err := ioutil.TempDir("", "soong_test_test")
116 defer os.RemoveAll(buildDir)
118 config := android.TestConfig(buildDir, nil)
Dgenrule_test.go48 config := android.TestArchConfig(buildDir, nil)
Dprebuilt_test.go71 config := android.TestArchConfig(buildDir, nil)
Dcc_test.go29 var buildDir string var
33 buildDir, err = ioutil.TempDir("", "soong_cc_test")
40 os.RemoveAll(buildDir)
123 config := android.TestArchConfig(buildDir, nil)
132 config := android.TestArchConfig(buildDir, nil)
140 config := android.TestArchConfig(buildDir, nil)
182 config := android.TestArchConfigFuchsia(buildDir, nil)
219 config := android.TestArchConfigFuchsia(buildDir, nil)
/build/soong/genrule/
Dgenrule_test.go29 var buildDir string var
33 buildDir, err = ioutil.TempDir("", "genrule_test")
40 os.RemoveAll(buildDir)
460 config := android.TestArchConfig(buildDir, nil)
503 config := android.TestArchConfig(buildDir, nil)
/build/soong/sysprop/
Dsysprop_test.go30 var buildDir string var
34 buildDir, err = ioutil.TempDir("", "soong_sysprop_test")
41 os.RemoveAll(buildDir)
182 config := java.TestConfig(buildDir, env)
/build/soong/apex/
Dapex_test.go30 var buildDir string var
34 config, buildDir = setup(t)
35 defer teardown(buildDir)
194 func setup(t *testing.T) (config android.Config, buildDir string) {
195 buildDir, err := ioutil.TempDir("", "soong_apex_test")
200 config = android.TestArchConfig(buildDir, nil)
209 func teardown(buildDir string) {
210 os.RemoveAll(buildDir)
317 …ensureContains(t, optFlags, "--assets_dir "+buildDir+"/.intermediates/myapex/android_common_myapex…
/build/blueprint/bootstrap/
Dconfig.go38 buildDir = bootstrapVariable("buildDir", func() string { var

12