2013-02-16 15:36:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-07-13 01:06:41 +00:00
|
|
|
root_dir=$(pwd)
|
|
|
|
|
2014-05-09 21:16:55 +00:00
|
|
|
run() {
|
|
|
|
echo '==============================================='
|
2014-07-13 01:06:41 +00:00
|
|
|
if [ ! $(pwd) = ${root_dir} ]; then
|
|
|
|
printf "cd $(pwd); "
|
|
|
|
fi
|
2014-05-09 21:16:55 +00:00
|
|
|
echo "${@}"
|
|
|
|
echo '==============================================='
|
|
|
|
"${@}"
|
|
|
|
}
|
|
|
|
|
2014-07-13 01:06:41 +00:00
|
|
|
run_cmake() {
|
|
|
|
mkdir -p cmake-build
|
|
|
|
rm -rf cmake-build/*
|
|
|
|
cd cmake-build
|
|
|
|
run cmake ${@} ..
|
|
|
|
run make -j4 check
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
2014-07-24 00:24:17 +00:00
|
|
|
if [ ${#} -gt 0 ]; then
|
|
|
|
run make ${@}
|
|
|
|
else
|
2014-07-13 01:06:41 +00:00
|
|
|
run_cmake -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
2014-07-24 00:24:17 +00:00
|
|
|
run make jdk-test
|
|
|
|
run make test
|
|
|
|
run make mode=debug test
|
|
|
|
run make process=interpret test
|
|
|
|
run make bootimage=true test
|
|
|
|
run make mode=debug bootimage=true test
|
|
|
|
run make openjdk=$JAVA_HOME test
|
|
|
|
run make tails=true continuations=true heapdump=true test
|
|
|
|
run make codegen-targets=all
|
2014-04-29 21:15:00 +00:00
|
|
|
fi
|