xenia/private/runtest.sh
Ben Vanik 0aa7d1ec05 Adding libjit.
Removing some old xethunk cruft.
2013-05-19 09:23:50 -07:00

33 lines
750 B
Bash
Executable file

python xenia-build.py build
if [ "$?" -ne 0 ]; then
echo "Build failed!"
exit $?
fi
./build/xenia/release/xenia-run \
private/$1 \
--dump_path=build/ \
--dump_module_map=true \
--dump_module_bitcode=true \
--optimize_ir_modules=true \
--optimize_ir_functions=true \
--memory_address_verification=true \
--trace_kernel_calls=true \
--trace_user_calls=true \
--trace_instructions=false \
--abort_before_entry=true \
1>build/run.txt
#2>build/run.llvm.txt \
if [ ! -s build/run.llvm.txt ]; then
rm build/run.llvm.txt
fi
if [ -e build/$1-preopt.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1-preopt.bc
fi
if [ -e build/$1.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1.bc
fi