Skip to content

Testing the VM

Ryan Macnak edited this page Jan 9, 2017 · 14 revisions

JIT

./tools/build.py -m all runtime
./tools/test.py -m all
./tools/test.py -m all --checked
export ASAN_OPTIONS="handle_segv=0:detect_stack_use_after_return=1"
export ASAN_SYMBOLIZER_PATH=`pwd`/third_party/clang/linux/bin/llvm-symbolizer
./tools/gn.py -m release --asan
./tools/build.py -m release runtime
./tools/test.py -m release --builder-tag=asan
./tools/gn.py -m release --tsan
./tools/build.py -m release runtime
./tools/test.py -m release

Noopt

./tools/build.py -mdebug,release runtime_and_noopt
./tools/test.py -mdebug,release --noopt

Precompilation

./tools/build.py -mrelease runtime_precompiled
./tools/test.py -mrelease -cprecompiler -rdart_precompiled

Precompilation on Android devices

./tools/build.py -mrelease -aarm --os=android runtime_precompiled
export PATH=$PATH:$PWD/third_party/android_tools/sdk/platform-tools
./tools/test.py -mrelease -aarm --system=android -cprecompiler -rdart_precompiled --use-blobs

App snapshots

./tools/build.py -mall runtime
./tools/test.py -mall -capp_jit
Clone this wiki locally