#!/usr/bin/env bash # Desktop-only GuestHeap test harness (see guest_heap_test.cpp's own top # comment) - no Android, no Unicorn, no APK, no device. Compiles # guest_heap.cpp directly against the host's own C++ compiler and runs the # resulting binary. Fast feedback loop for changes to the guest heap # allocator before ever touching a device. set -euo pipefail cd "$(dirname "$0")/.." SRC_DIR="src/main/cpp/emu" OUT="${TMPDIR:-/tmp}/guest_heap_test" c++ -std=c++17 -O0 -g -Wall \ "$SRC_DIR/guest_heap.cpp" \ "$SRC_DIR/tests/guest_heap_test.cpp" \ -I"$SRC_DIR" \ -o "$OUT" "$OUT"