Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
dalvik
Commits
df9d8556
Commit
df9d8556
authored
9 years ago
by
Andreas Gampe
Committed by
android-build-merger
9 years ago
Browse files
Options
Download
Plain Diff
Merge "DX: Fix tests 115, 119, 125" am:
50b3c25c
am:
47d5a85f
* commit '
47d5a85f
': DX: Fix tests 115, 119, 125
parents
68fd0c98
47d5a85f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
dx/tests/115-merge/run
dx/tests/115-merge/run
+5
-3
dx/tests/119-merge-conflict/run
dx/tests/119-merge-conflict/run
+5
-3
dx/tests/125-main-dex-list/run
dx/tests/125-main-dex-list/run
+1
-1
No files found.
dx/tests/115-merge/run
View file @
df9d8556
...
...
@@ -18,8 +18,10 @@
prog
=
`
which dx
`
progdir
=
`
dirname
"
${
prog
}
"
`
dxjar
=
$progdir
/../framework/dx.jar
junitjar
=
$progdir
/../framework/junit.jar
junitdex
=
$progdir
/../framework/junit-hostdex.jar
javac
-cp
$dxjar
`
find
.
-name
"*.java"
`
javac
-cp
$dxjar
:
$junitjar
`
find
.
-name
"*.java"
`
dx
--dex
--output
=
test.jar com/android/dx/merge/
*
$dxjar
# Build a resource .jar containing the .dex files to merge
...
...
@@ -30,8 +32,8 @@ dx --dex --output=testdata/StaticValues.dex testdata/StaticValues*
dx
--dex
--output
=
testdata/TryCatchFinally.dex testdata/TryCatchFinally
*
jar cfM resources.jar testdata/
*
.dex
dalvik
-classpath
test.jar:resources.jar
\
junit.textui.TestRunner com.android.dx.merge.DexMergeTest
>
unit-out.txt
art
-classpath
test.jar:
$junitdex
:
resources.jar
\
junit.textui.TestRunner com.android.dx.merge.DexMergeTest
>
unit-out.txt
2>&1
if
[
"
$?
"
=
"0"
]
;
then
echo
"Yay!"
...
...
This diff is collapsed.
Click to expand it.
dx/tests/119-merge-conflict/run
View file @
df9d8556
...
...
@@ -18,8 +18,10 @@
prog
=
`
which dx
`
progdir
=
`
dirname
"
${
prog
}
"
`
dxjar
=
$progdir
/../framework/dx.jar
junitjar
=
$progdir
/../framework/junit.jar
junitdex
=
$progdir
/../framework/junit-hostdex.jar
javac
-cp
$dxjar
`
find
.
-name
"*.java"
`
javac
-cp
$dxjar
:
$junitjar
`
find
.
-name
"*.java"
`
dx
--dex
--output
=
test.jar com/android/dx/merge/
*
$dxjar
# Build a resource .jar containing the .dex files to merge
...
...
@@ -27,8 +29,8 @@ dx --dex --output=testdata/A.dex testdata/A.class
dx
--dex
--output
=
testdata/B.dex testdata/B.class
jar cfM resources.jar testdata/
*
.dex
dalvik
-classpath
test.jar:resources.jar
\
junit.textui.TestRunner com.android.dx.merge.MergeConflictTest
>
unit-out.txt
art
-classpath
test.jar:
$junitdex
:
resources.jar
\
junit.textui.TestRunner com.android.dx.merge.MergeConflictTest
>
unit-out.txt
2>&1
if
[
"
$?
"
=
"0"
]
;
then
echo
"Yay!"
...
...
This diff is collapsed.
Click to expand it.
dx/tests/125-main-dex-list/run
View file @
df9d8556
...
...
@@ -24,7 +24,7 @@ mkdir out
dx
-JXmx1024m
--dex
--no-optimize
--multi-dex
--main-dex-list
=
main.list
--minimal-main-dex
--output
=
out classes
dalvik
-classpath
test.jar com.android.dx.multidex.MainDexListTest
>
unit-out.txt
art
-classpath
test.jar com.android.dx.multidex.MainDexListTest
>
unit-out.txt
2>&1
if
[
"
$?
"
=
"0"
]
;
then
echo
"Yay!"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment