2013-02-16 15:36:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-05-09 21:16:55 +00:00
|
|
|
run() {
|
|
|
|
echo '==============================================='
|
|
|
|
echo "${@}"
|
|
|
|
echo '==============================================='
|
|
|
|
"${@}"
|
|
|
|
}
|
|
|
|
|
2014-04-29 21:15:00 +00:00
|
|
|
if [ -z "${test_target}" ]; then
|
|
|
|
test_target=test
|
|
|
|
fi
|
|
|
|
|
|
|
|
# we shouldn't run jdk-test builds if we're not running the test target
|
|
|
|
if [ ${test_target} = test ]; then
|
2014-05-09 21:16:55 +00:00
|
|
|
run make ${flags} jdk-test
|
2014-04-29 21:15:00 +00:00
|
|
|
fi
|
|
|
|
|
2014-05-09 21:16:55 +00:00
|
|
|
run make ${flags} ${test_target}
|
|
|
|
run make ${flags} mode=debug ${test_target}
|
|
|
|
run make ${flags} process=interpret ${test_target}
|
2013-02-27 20:47:43 +00:00
|
|
|
# bootimage and openjdk builds without openjdk-src don't work:
|
|
|
|
if [ -z "${openjdk}" ]; then
|
2014-05-09 21:16:55 +00:00
|
|
|
run make ${flags} bootimage=true ${test_target}
|
2014-05-31 17:18:42 +00:00
|
|
|
run make ${flags} mode=debug bootimage=true ${test_target}
|
2014-07-12 22:03:11 +00:00
|
|
|
if [ -z "${android}" ]; then
|
|
|
|
# might as well do an openjdk test while we're here:
|
|
|
|
run make openjdk=$JAVA_HOME ${flags} ${test_target}
|
|
|
|
fi
|
2013-02-27 20:47:43 +00:00
|
|
|
fi
|
2014-07-16 20:18:42 +00:00
|
|
|
run make ${flags} tails=true continuations=true heapdump=true ${test_target}
|
2014-05-09 21:16:55 +00:00
|
|
|
run make ${flags} codegen-targets=all
|