Merge "Remove uses of buildDir from java/dexpreopt_bootjars_test.go"
This commit is contained in:
@@ -54,11 +54,11 @@ func testDexpreoptBoot(t *testing.T, ruleFile string, expectedInputs, expectedOu
|
|||||||
rule := dexpreoptBootJars.Output(ruleFile)
|
rule := dexpreoptBootJars.Output(ruleFile)
|
||||||
|
|
||||||
for i := range expectedInputs {
|
for i := range expectedInputs {
|
||||||
expectedInputs[i] = filepath.Join(buildDir, "test_device", expectedInputs[i])
|
expectedInputs[i] = filepath.Join("out/soong/test_device", expectedInputs[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := range expectedOutputs {
|
for i := range expectedOutputs {
|
||||||
expectedOutputs[i] = filepath.Join(buildDir, "test_device", expectedOutputs[i])
|
expectedOutputs[i] = filepath.Join("out/soong/test_device", expectedOutputs[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs := rule.Implicits.Strings()
|
inputs := rule.Implicits.Strings()
|
||||||
@@ -69,9 +69,9 @@ func testDexpreoptBoot(t *testing.T, ruleFile string, expectedInputs, expectedOu
|
|||||||
sort.Strings(outputs)
|
sort.Strings(outputs)
|
||||||
sort.Strings(expectedOutputs)
|
sort.Strings(expectedOutputs)
|
||||||
|
|
||||||
android.AssertDeepEquals(t, "inputs", expectedInputs, inputs)
|
android.AssertStringPathsRelativeToTopEquals(t, "inputs", result.Config, expectedInputs, inputs)
|
||||||
|
|
||||||
android.AssertDeepEquals(t, "outputs", expectedOutputs, outputs)
|
android.AssertStringPathsRelativeToTopEquals(t, "outputs", result.Config, expectedOutputs, outputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDexpreoptBootJars(t *testing.T) {
|
func TestDexpreoptBootJars(t *testing.T) {
|
||||||
@@ -107,7 +107,7 @@ func TestDexpreoptBootJars(t *testing.T) {
|
|||||||
func TestDexpreoptBootZip(t *testing.T) {
|
func TestDexpreoptBootZip(t *testing.T) {
|
||||||
ruleFile := "boot.zip"
|
ruleFile := "boot.zip"
|
||||||
|
|
||||||
ctx := android.PathContextForTesting(testConfig(nil, "", nil))
|
ctx := android.PathContextForTesting(android.TestArchConfig("", nil, "", nil))
|
||||||
expectedInputs := []string{}
|
expectedInputs := []string{}
|
||||||
for _, target := range ctx.Config().Targets[android.Android] {
|
for _, target := range ctx.Config().Targets[android.Android] {
|
||||||
for _, ext := range []string{".art", ".oat", ".vdex"} {
|
for _, ext := range []string{".art", ".oat", ".vdex"} {
|
||||||
|
Reference in New Issue
Block a user