16 lines
371 B
Bash
Executable File
16 lines
371 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Builds and runs the hamburger-morphing Rust test window.
|
|
#
|
|
# Usage:
|
|
# ./run.sh # build (if needed) and run the demo window
|
|
# ./run.sh --test # run the library test suite instead
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/rust"
|
|
|
|
if [[ "${1:-}" == "--test" ]]; then
|
|
cargo test
|
|
else
|
|
cargo run -p hamburger-morphing-demo --release
|
|
fi
|