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
art
Commits
58bcc40e
Commit
58bcc40e
authored
13 years ago
by
Elliott Hughes
Browse files
Options
Download
Email Patches
Plain Diff
We replace -d with -O recently, but not uniformly.
Change-Id: Ia66037addabe8f0c61531d955bf570aa4c7c83e6
parent
b305770f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
25 deletions
+20
-25
test/etc/push-and-run-test-jar
test/etc/push-and-run-test-jar
+11
-17
test/run-all-tests
test/run-all-tests
+4
-4
test/run-test
test/run-test
+5
-4
No files found.
test/etc/push-and-run-test-jar
View file @
58bcc40e
...
...
@@ -23,7 +23,7 @@ OATEXEC="oatexecd"
DEBUG
=
"n"
VERIFY
=
"y"
OPTIMIZE
=
"y"
ZYGOTE
=
"
n
"
ZYGOTE
=
""
QUIET
=
"n"
DEV_MODE
=
"n"
INVOKE_WITH
=
""
...
...
@@ -39,7 +39,7 @@ while true; do
DEBUG
=
"y"
shift
elif
[
"x
$1
"
=
"x--zygote"
]
;
then
ZYGOTE
=
"
y
"
ZYGOTE
=
"
--zygote
"
msg
"Spawning from zygote"
shift
elif
[
"x
$1
"
=
"x--dev"
]
;
then
...
...
@@ -66,7 +66,7 @@ while true; do
fi
done
if
[
"
$ZYGOTE
"
=
"
n
"
]
;
then
if
[
"
$ZYGOTE
"
=
""
]
;
then
if
[
"
$OPTIMIZE
"
=
"y"
]
;
then
if
[
"
$VERIFY
"
=
"y"
]
;
then
DEX_OPTIMIZE
=
"-Xdexopt:verified"
...
...
@@ -116,18 +116,12 @@ if [ "$DEBUG" = "y" ]; then
# jdb -attach localhost:12345
fi
if
[
"
$ZYGOTE
"
=
"y"
]
;
then
adb shell
cd
/data
\;
dvz
-classpath
$TEST_NAME
.jar Main
"
$@
"
else
cmdline
=
"cd /data;
$INVOKE_WITH
$OATEXEC
${
DEX_DEBUG
}
-Xjnigreflimit:256
\
-Ximage:/data/art-test/core.art
\
-cp /data/art-test/
$TEST_NAME
.jar
\
Main"
#cmdline="cd /data; dalvikvm $DEX_VERIFY $DEX_OPTIMIZE $DEX_DEBUG \
# -cp test.jar -Xint:${INTERP} -ea Main"
if
[
"
$DEV_MODE
"
=
"y"
]
;
then
echo
$cmdline
"
$@
"
fi
adb shell
$cmdline
"
$@
"
cmdline
=
"cd /data;
$INVOKE_WITH
$OATEXEC
$DEX_DEBUG
$ZYGOTE
-Xjnigreflimit:256
\
-Ximage:/data/art-test/core.art
\
-cp /data/art-test/
$TEST_NAME
.jar
\
Main"
if
[
"
$DEV_MODE
"
=
"y"
]
;
then
echo
$cmdline
"
$@
"
fi
adb shell
$cmdline
"
$@
"
This diff is collapsed.
Click to expand it.
test/run-all-tests
View file @
58bcc40e
...
...
@@ -40,8 +40,8 @@ while true; do
if
[
"x
$1
"
=
"x--host"
]
;
then
run_args
=
"
${
run_args
}
--host"
shift
elif
[
"x
$1
"
=
"x--
reference
"
]
;
then
run_args
=
"
${
run_args
}
--
reference
"
elif
[
"x
$1
"
=
"x--
jvm
"
]
;
then
run_args
=
"
${
run_args
}
--
jvm
"
shift
elif
[
"x
$1
"
=
"x--debug"
]
;
then
run_args
=
"
${
run_args
}
--debug"
...
...
@@ -84,8 +84,8 @@ if [ "$usage" = "yes" ]; then
echo
"
$prog
[options] Run all tests with the given options."
echo
" Options are all passed to run-test; refer to that for "
\
"further documentation:"
echo
" --debug --dev --host --no-optimize --no-verify"
echo
" -
-reference
--update --valgrind --zygote"
echo
" --debug --dev --host
--jvm
--no-optimize --no-verify"
echo
" -
O
--update --valgrind --zygote"
)
1>&2
exit
1
fi
...
...
This diff is collapsed.
Click to expand it.
test/run-test
View file @
58bcc40e
...
...
@@ -54,11 +54,11 @@ while true; do
if
[
"x
$1
"
=
"x--host"
]
;
then
RUN
=
"
${
progdir
}
/etc/host-run-test-jar"
shift
elif
[
"x
$1
"
=
"x--
reference
"
]
;
then
elif
[
"x
$1
"
=
"x--
jvm
"
]
;
then
RUN
=
"
${
progdir
}
/etc/reference-run-test-classes"
shift
elif
[
"x
$1
"
=
"x-
d
"
]
;
then
run_args
=
"
${
run_args
}
-
d
"
elif
[
"x
$1
"
=
"x-
O
"
]
;
then
run_args
=
"
${
run_args
}
-
O
"
shift
elif
[
"x
$1
"
=
"x--debug"
]
;
then
run_args
=
"
${
run_args
}
--debug"
...
...
@@ -142,6 +142,7 @@ if [ "$usage" = "yes" ]; then
echo
' Omitting the test name or specifying "-" will use the'
\
"current directory."
echo
" Runtime Options:"
echo
" -O Run oatexec rather than oatexecd (off by default)."
echo
" --debug Wait for a debugger to attach."
#echo " --gdb Run under gdb; incompatible with some tests."
echo
" --no-verify Turn off verification (on by default)."
...
...
@@ -152,7 +153,7 @@ if [ "$usage" = "yes" ]; then
echo
" other runtime options are ignored."
echo
" --host Use the host-mode virtual machine."
echo
" --valgrind Use valgrind when running locally."
echo
" --
reference
Use a host-local
reference
virtual machine."
echo
" --
jvm
Use a host-local
RI
virtual machine."
)
1>&2
exit
1
fi
...
...
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